Avoid pass by ref warning. Props arena. see #18975
git-svn-id: http://svn.automattic.com/wordpress/trunk@18997 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
0b9a1f68da
commit
6623ea4b4a
|
@ -215,7 +215,7 @@ if ( apply_filters('custom_menu_order', false) ) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Remove the last menu item if it is a separator.
|
// 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 ] )
|
if ( !empty( $menu ) && 'wp-menu-separator' == $menu[ $last_menu_key ][ 4 ] )
|
||||||
unset( $menu[ $last_menu_key ] );
|
unset( $menu[ $last_menu_key ] );
|
||||||
unset( $last_menu_key );
|
unset( $last_menu_key );
|
||||||
|
|
Loading…
Reference in New Issue