git-svn-id: http://svn.automattic.com/wordpress/trunk@15471 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -893,7 +893,7 @@ case 'add-meta' :
|
||||
'supplemental' => array('postid' => $pid)
|
||||
) );
|
||||
} else { // Update?
|
||||
$mid = (int) array_pop(array_keys($_POST['meta']));
|
||||
$mid = (int) array_pop( $var_by_ref = array_keys($_POST['meta']) );
|
||||
$key = $_POST['meta'][$mid]['key'];
|
||||
$value = $_POST['meta'][$mid]['value'];
|
||||
if ( '' == trim($key) )
|
||||
|
||||
@@ -324,7 +324,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( 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 ) {
|
||||
echo json_encode(
|
||||
array(
|
||||
|
||||
@@ -104,7 +104,7 @@ switch ( $_GET['action'] ) {
|
||||
$move_users = array();
|
||||
foreach ( (array)$users as $user ) {
|
||||
$user_meta_value = unserialize( $user->meta_value );
|
||||
if ( is_array( $user_meta_value ) && array_pop( array_keys( $user_meta_value ) ) == 'subscriber' )
|
||||
if ( is_array( $user_meta_value ) && array_pop( $var_by_ref = array_keys( $user_meta_value ) ) == 'subscriber' )
|
||||
$move_users[] = $user->user_id;
|
||||
}
|
||||
if ( false == empty( $move_users ) ) {
|
||||
|
||||
Reference in New Issue
Block a user