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:
parent
5fdbe93b26
commit
6fcc6b739a
|
@ -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 );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue