WordPress.org

Make WordPress Core


Ignore:
Timestamp:
07/25/2010 07:35:59 AM (10 years ago)
Author:
nacin
Message:

More curses on PHP 5.0.5. see #13757, fixes #14160. for trunk.

File:
1 edited

Legend:

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

    r15254 r15471  
    325325                the_post();
    326326                if ( 'markup' == $response_format ) {
    327                     echo walk_nav_menu_tree( array_map('wp_setup_nav_menu_item', array( get_post( get_the_ID() ) ) ), 0, (object) $args );
     327                    echo walk_nav_menu_tree( array_map('wp_setup_nav_menu_item', array( get_post( $var_by_ref = get_the_ID() ) ) ), 0, (object) $args );
    328328                } elseif ( 'json' == $response_format ) {
    329329                    echo json_encode(
Note: See TracChangeset for help on using the changeset viewer.