Make WordPress Core


Ignore:
Timestamp:
10/28/2011 03:48:44 PM (13 years ago)
Author:
ryan
Message:

Avoid 'Only variables should be passed by reference' warnings. Props SergeyBiryukov. see #18975

File:
1 edited

Legend:

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

    r19028 r19074  
    338338                the_post();
    339339                if ( 'markup' == $response_format ) {
    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 );
     340                    $var_by_ref = get_the_ID();
     341                    echo walk_nav_menu_tree( array_map('wp_setup_nav_menu_item', array( get_post( $var_by_ref ) ) ), 0, (object) $args );
    341342                } elseif ( 'json' == $response_format ) {
    342343                    echo json_encode(
Note: See TracChangeset for help on using the changeset viewer.