Avoid 'Only variables should be passed by reference' warnings. Props SergeyBiryukov. see #18975

git-svn-id: https://develop.svn.wordpress.org/trunk@19074 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2011-10-28 15:48:44 +00:00
parent d85938ec7a
commit 722c6d7003
4 changed files with 8 additions and 4 deletions
+2 -1
View File
@@ -860,7 +860,8 @@ case 'add-meta' :
'supplemental' => array('postid' => $pid)
) );
} else { // Update?
$mid = (int) array_pop( $var_by_ref = array_keys($_POST['meta']) );
$var_by_ref = array_keys( $_POST['meta'] );
$mid = (int) array_pop( $var_by_ref );
$key = stripslashes( $_POST['meta'][$mid]['key'] );
$value = stripslashes( $_POST['meta'][$mid]['value'] );
if ( '' == trim($key) )