diff --git a/wp-admin/admin-ajax.php b/wp-admin/admin-ajax.php index 66a3c47533..18a853bf6d 100644 --- a/wp-admin/admin-ajax.php +++ b/wp-admin/admin-ajax.php @@ -859,7 +859,7 @@ case 'add-meta' : 'supplemental' => array('postid' => $pid) ) ); } else { // Update? - $mid = (int) array_pop( $var_by_ref = array_keys($_POST['meta']) ); + $mid = (int) array_pop( array_keys($_POST['meta']) ); $key = $_POST['meta'][$mid]['key']; $value = $_POST['meta'][$mid]['value']; if ( '' == trim($key) ) diff --git a/wp-admin/includes/nav-menu.php b/wp-admin/includes/nav-menu.php index 7e836e44ce..e685a7320b 100644 --- a/wp-admin/includes/nav-menu.php +++ b/wp-admin/includes/nav-menu.php @@ -334,7 +334,7 @@ function _wp_ajax_menu_quick_search( $request = array() ) { while ( have_posts() ) { the_post(); if ( 'markup' == $response_format ) { - echo walk_nav_menu_tree( array_map('wp_setup_nav_menu_item', array( get_post( $var_by_ref = get_the_ID() ) ) ), 0, (object) $args ); + echo walk_nav_menu_tree( array_map('wp_setup_nav_menu_item', array( get_post( get_the_ID() ) ) ), 0, (object) $args ); } elseif ( 'json' == $response_format ) { echo json_encode( array( diff --git a/wp-app.php b/wp-app.php index 68e96d4369..ec35b4120c 100644 --- a/wp-app.php +++ b/wp-app.php @@ -223,7 +223,7 @@ class AtomServer { */ function __construct() { - $this->script_name = array_pop( $var_by_ref = explode( '/', $_SERVER['SCRIPT_NAME'] ) ); + $this->script_name = array_pop( explode( '/', $_SERVER['SCRIPT_NAME'] ) ); $this->app_base = site_url( $this->script_name . '/' ); $this->selectors = array( diff --git a/wp-includes/wp-db.php b/wp-includes/wp-db.php index 11086c8d79..bc9dc9b81c 100644 --- a/wp-includes/wp-db.php +++ b/wp-includes/wp-db.php @@ -1365,7 +1365,7 @@ class wpdb { // Return an array of row objects with keys from column 1 // (Duplicates are discarded) foreach ( $this->last_result as $row ) { - $key = array_shift( $var_by_ref = get_object_vars( $row ) ); + $key = array_shift( get_object_vars( $row ) ); if ( ! isset( $new_array[ $key ] ) ) $new_array[ $key ] = $row; }