WordPress.org

Make WordPress Core

Changeset 18110


Ignore:
Timestamp:
06/01/2011 10:03:36 PM (9 years ago)
Author:
nacin
Message:

Take that, PHP 5.0.5. Good riddens. see #14160.

Location:
trunk
Files:
4 edited

Legend:

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

    r18100 r18110  
    860860        ) );
    861861    } else { // Update?
    862         $mid = (int) array_pop( $var_by_ref = array_keys($_POST['meta']) );
     862        $mid = (int) array_pop( array_keys($_POST['meta']) );
    863863        $key = $_POST['meta'][$mid]['key'];
    864864        $value = $_POST['meta'][$mid]['value'];
  • trunk/wp-admin/includes/nav-menu.php

    r18010 r18110  
    335335                the_post();
    336336                if ( 'markup' == $response_format ) {
    337                     echo walk_nav_menu_tree( array_map('wp_setup_nav_menu_item', array( get_post( $var_by_ref = get_the_ID() ) ) ), 0, (object) $args );
     337                    echo walk_nav_menu_tree( array_map('wp_setup_nav_menu_item', array( get_post( get_the_ID() ) ) ), 0, (object) $args );
    338338                } elseif ( 'json' == $response_format ) {
    339339                    echo json_encode(
  • trunk/wp-app.php

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

    r18063 r18110  
    13661366            // (Duplicates are discarded)
    13671367            foreach ( $this->last_result as $row ) {
    1368                 $key = array_shift( $var_by_ref = get_object_vars( $row ) );
     1368                $key = array_shift( get_object_vars( $row ) );
    13691369                if ( ! isset( $new_array[ $key ] ) )
    13701370                    $new_array[ $key ] = $row;
Note: See TracChangeset for help on using the changeset viewer.