Avoid 'Only variables should be passed by reference' warnings. Reverts [18110]. see #18975
git-svn-id: https://develop.svn.wordpress.org/trunk@18998 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
9683b05c4e
commit
789dab3f20
|
@ -860,7 +860,7 @@ case 'add-meta' :
|
||||||
'supplemental' => array('postid' => $pid)
|
'supplemental' => array('postid' => $pid)
|
||||||
) );
|
) );
|
||||||
} else { // Update?
|
} else { // Update?
|
||||||
$mid = (int) array_pop( array_keys($_POST['meta']) );
|
$mid = (int) array_pop( $var_by_ref = array_keys($_POST['meta']) );
|
||||||
$key = stripslashes( $_POST['meta'][$mid]['key'] );
|
$key = stripslashes( $_POST['meta'][$mid]['key'] );
|
||||||
$value = stripslashes( $_POST['meta'][$mid]['value'] );
|
$value = stripslashes( $_POST['meta'][$mid]['value'] );
|
||||||
if ( '' == trim($key) )
|
if ( '' == trim($key) )
|
||||||
|
|
|
@ -337,7 +337,7 @@ function _wp_ajax_menu_quick_search( $request = array() ) {
|
||||||
while ( have_posts() ) {
|
while ( have_posts() ) {
|
||||||
the_post();
|
the_post();
|
||||||
if ( 'markup' == $response_format ) {
|
if ( 'markup' == $response_format ) {
|
||||||
echo walk_nav_menu_tree( array_map('wp_setup_nav_menu_item', array( get_post( get_the_ID() ) ) ), 0, (object) $args );
|
echo walk_nav_menu_tree( array_map('wp_setup_nav_menu_item', array( get_post( $var_by_ref = get_the_ID() ) ) ), 0, (object) $args );
|
||||||
} elseif ( 'json' == $response_format ) {
|
} elseif ( 'json' == $response_format ) {
|
||||||
echo json_encode(
|
echo json_encode(
|
||||||
array(
|
array(
|
||||||
|
|
|
@ -223,7 +223,7 @@ class AtomServer {
|
||||||
*/
|
*/
|
||||||
function __construct() {
|
function __construct() {
|
||||||
|
|
||||||
$this->script_name = array_pop( explode( '/', $_SERVER['SCRIPT_NAME'] ) );
|
$this->script_name = array_pop( $var_by_ref = explode( '/', $_SERVER['SCRIPT_NAME'] ) );
|
||||||
$this->app_base = site_url( $this->script_name . '/' );
|
$this->app_base = site_url( $this->script_name . '/' );
|
||||||
|
|
||||||
$this->selectors = array(
|
$this->selectors = array(
|
||||||
|
|
|
@ -1369,7 +1369,7 @@ class wpdb {
|
||||||
// Return an array of row objects with keys from column 1
|
// Return an array of row objects with keys from column 1
|
||||||
// (Duplicates are discarded)
|
// (Duplicates are discarded)
|
||||||
foreach ( $this->last_result as $row ) {
|
foreach ( $this->last_result as $row ) {
|
||||||
$key = array_shift( get_object_vars( $row ) );
|
$key = array_shift( $var_by_ref = get_object_vars( $row ) );
|
||||||
if ( ! isset( $new_array[ $key ] ) )
|
if ( ! isset( $new_array[ $key ] ) )
|
||||||
$new_array[ $key ] = $row;
|
$new_array[ $key ] = $row;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue