Ticket #18975: 18975.3.patch
File 18975.3.patch, 2.3 KB (added by , 13 years ago) |
---|
-
wp-admin/admin-ajax.php
860 860 'supplemental' => array('postid' => $pid) 861 861 ) ); 862 862 } else { // Update? 863 $mid = (int) array_pop( $var_by_ref = array_keys($_POST['meta']) ); 863 $var_by_ref = array_keys( $_POST['meta'] ); 864 $mid = (int) array_pop( $var_by_ref ); 864 865 $key = stripslashes( $_POST['meta'][$mid]['key'] ); 865 866 $value = stripslashes( $_POST['meta'][$mid]['value'] ); 866 867 if ( '' == trim($key) ) -
wp-admin/includes/nav-menu.php
337 337 while ( have_posts() ) { 338 338 the_post(); 339 339 if ( 'markup' == $response_format ) { 340 echo walk_nav_menu_tree( array_map('wp_setup_nav_menu_item', array( get_post( $var_by_ref = get_the_ID() ) ) ), 0, (object) $args ); 340 $var_by_ref = get_the_ID(); 341 echo walk_nav_menu_tree( array_map('wp_setup_nav_menu_item', array( get_post( $var_by_ref ) ) ), 0, (object) $args ); 341 342 } elseif ( 'json' == $response_format ) { 342 343 echo json_encode( 343 344 array( -
wp-app.php
223 223 */ 224 224 function __construct() { 225 225 226 $this->script_name = array_pop( $var_by_ref = explode( '/', $_SERVER['SCRIPT_NAME'] ) ); 226 $var_by_ref = explode( '/', $_SERVER['SCRIPT_NAME'] ); 227 $this->script_name = array_pop( $var_by_ref ); 227 228 $this->app_base = site_url( $this->script_name . '/' ); 228 229 229 230 $this->selectors = array( -
wp-includes/wp-db.php
1386 1386 // Return an array of row objects with keys from column 1 1387 1387 // (Duplicates are discarded) 1388 1388 foreach ( $this->last_result as $row ) { 1389 $key = array_shift( $var_by_ref = get_object_vars( $row ) ); 1389 $var_by_ref = get_object_vars( $row ); 1390 $key = array_shift( $var_by_ref ); 1390 1391 if ( ! isset( $new_array[ $key ] ) ) 1391 1392 $new_array[ $key ] = $row; 1392 1393 }