Use correct keys

git-svn-id: http://svn.automattic.com/wordpress/branches/3.1@18020 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2011-05-24 15:55:03 +00:00
parent 5fdbe93b26
commit 6fcc6b739a
1 changed files with 2 additions and 2 deletions

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 );
}