• Resolved Mike Schinkel

    (@mikeschinkel)


    The is a subtle bug that throws errors when WP_DEBUG is set to true that it would be great if you can fix. Here is a fix:

    foreach ( $conditions as $condition ) {
    	if ( isset( $condition[ 'id' ] ) ) {
    		$c2[ $condition[ 'id' ] ]   = $condition;
    	}
    	if ( isset( $condition[ 'name' ] ) ) {
    		$c2[ $condition[ 'name' ] ] = $condition;
    	}
    	if ( isset( $condition[ 'alias' ] ) ) {
    		$c2[ $condition[ 'alias' ] ] = $condition;
    	}
    }

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author Andrei

    (@andreiigna)

    Hi Mike,

    Thanks for letting me know, I see how this may result in errors displayed on some websites. Visibility rules saved before v0.9 may not have the id, this triggering a warning.

    This is added in the latest version of the plugin.

    Cheers

Viewing 1 replies (of 1 total)
  • The topic ‘Subtle bug in if-menu.php, with fix’ is closed to new replies.