WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/18/2011 08:44:39 PM (10 years ago)
Author:
ryan
Message:

Avoid 'Only variables should be passed by reference' warnings. Reverts [18110]. see #18975

File:
1 edited

Legend:

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

    r18755 r18998  
    338338                the_post();
    339339                if ( 'markup' == $response_format ) {
    340                     echo walk_nav_menu_tree( array_map('wp_setup_nav_menu_item', array( get_post( get_the_ID() ) ) ), 0, (object) $args );
     340                    echo walk_nav_menu_tree( array_map('wp_setup_nav_menu_item', array( get_post( $var_by_ref = get_the_ID() ) ) ), 0, (object) $args );
    341341                } elseif ( 'json' == $response_format ) {
    342342                    echo json_encode(
Note: See TracChangeset for help on using the changeset viewer.