WordPress.org

Make WordPress Core

Changeset 15470


Ignore:
Timestamp:
07/25/10 07:34:49 (5 years ago)
Author:
nacin
Message:

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

Location:
branches/3.0
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • branches/3.0/wp-admin/admin-ajax.php

    r15453 r15470  
    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']; 
  • branches/3.0/wp-admin/includes/nav-menu.php

    r15254 r15470  
    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( 
  • branches/3.0/wp-admin/ms-edit.php

    r15403 r15470  
    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            } 
  • branches/3.0/wp-app.php

    r14949 r15470  
    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 
  • branches/3.0/wp-includes/query.php

    r15229 r15470  
    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) ) { 
  • branches/3.0/wp-includes/wp-db.php

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