Use correct keys

git-svn-id: https://develop.svn.wordpress.org/trunk@17996 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2011-05-22 23:21:34 +00:00
parent 85c07485bf
commit f82a14802e

View File

@ -200,7 +200,7 @@ function edit_post( $post_data = null ) {
continue;
if ( $meta->post_id != $post_ID )
continue;
if ( is_protected_meta( $key ) )
if ( is_protected_meta( $value['key'] ) )
continue;
update_meta( $key, $value['key'], $value['value'] );
}
@ -212,7 +212,7 @@ function edit_post( $post_data = null ) {
continue;
if ( $meta->post_id != $post_ID )
continue;
if ( is_protected_meta( $key ) )
if ( is_protected_meta( $meta->meta_key ) )
continue;
delete_meta( $key );
}