WordPress.org

Make WordPress Core

Changeset 18997


Ignore:
Timestamp:
10/18/11 20:38:18 (2 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/menu.php

    r18740 r18997  
    216216 
    217217// Remove the last menu item if it is a separator. 
    218 $last_menu_key = array_pop( array_keys( $menu ) ); 
     218$last_menu_key = array_pop( $last_menu_key = array_keys( $menu ) ); 
    219219if ( !empty( $menu ) && 'wp-menu-separator' == $menu[ $last_menu_key ][ 4 ] ) 
    220220    unset( $menu[ $last_menu_key ] ); 
Note: See TracChangeset for help on using the changeset viewer.