WordPress.org

Make WordPress Core

Changeset 15471


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

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

Location:
trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin-ajax.php

    r15454 r15471  
    894894        ) );
    895895    } else { // Update?
    896         $mid = (int) array_pop(array_keys($_POST['meta']));
     896        $mid = (int) array_pop( $var_by_ref = array_keys($_POST['meta']) );
    897897        $key = $_POST['meta'][$mid]['key'];
    898898        $value = $_POST['meta'][$mid]['value'];
  • 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(
  • trunk/wp-admin/ms-edit.php

    r15404 r15471  
    105105            foreach ( (array)$users as $user ) {
    106106                $user_meta_value = unserialize( $user->meta_value );
    107                 if ( is_array( $user_meta_value ) && array_pop( array_keys( $user_meta_value ) ) == 'subscriber' )
     107                if ( is_array( $user_meta_value ) && array_pop( $var_by_ref = array_keys( $user_meta_value ) ) == 'subscriber' )
    108108                    $move_users[] = $user->user_id;
    109109            }
  • trunk/wp-app.php

    r14949 r15471  
    224224    function AtomServer() {
    225225
    226         $this->script_name = array_pop(explode('/',$_SERVER['SCRIPT_NAME']));
     226        $this->script_name = array_pop( $var_by_ref = explode( '/', $_SERVER['SCRIPT_NAME'] ) );
    227227        $this->app_base = site_url( $this->script_name . '/' );
    228228
  • trunk/wp-includes/query.php

    r15229 r15471  
    27392739            $this->queried_object_id = $term->term_id;
    27402740        } elseif ( $this->is_posts_page ) {
    2741             $this->queried_object = & get_page(get_option('page_for_posts'));
     2741            $page_for_posts = get_option('page_for_posts');
     2742            $this->queried_object = & get_page( $page_for_posts );
    27422743            $this->queried_object_id = (int) $this->queried_object->ID;
    27432744        } elseif ( $this->is_single && !is_null($this->post) ) {
  • trunk/wp-includes/wp-db.php

    r15447 r15471  
    14021402            // (Duplicates are discarded)
    14031403            foreach ( $this->last_result as $row ) {
    1404                 $key = array_shift( get_object_vars( $row ) );
     1404                $key = array_shift( $var_by_ref = get_object_vars( $row ) );
    14051405                if ( ! isset( $new_array[ $key ] ) )
    14061406                    $new_array[ $key ] = $row;
Note: See TracChangeset for help on using the changeset viewer.