Avoid pass by ref warning. Props arena. see #18975

git-svn-id: https://develop.svn.wordpress.org/trunk@18997 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2011-10-18 20:38:18 +00:00
parent f95cb305ea
commit 9683b05c4e
1 changed files with 1 additions and 1 deletions

View File

@ -215,7 +215,7 @@ if ( apply_filters('custom_menu_order', false) ) {
}
// Remove the last menu item if it is a separator.
$last_menu_key = array_pop( array_keys( $menu ) );
$last_menu_key = array_pop( $last_menu_key = array_keys( $menu ) );
if ( !empty( $menu ) && 'wp-menu-separator' == $menu[ $last_menu_key ][ 4 ] )
unset( $menu[ $last_menu_key ] );
unset( $last_menu_key );