Subtle bug in if-menu.php, with fix
-
The is a subtle bug that throws errors when
WP_DEBUG
is set totrue
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)
Viewing 1 replies (of 1 total)
- The topic ‘Subtle bug in if-menu.php, with fix’ is closed to new replies.