From cb44c14449c70e2ee667aebdbe8365a80732c297 Mon Sep 17 00:00:00 2001 From: ryan Date: Sun, 22 May 2011 23:21:34 +0000 Subject: [PATCH] Use correct keys git-svn-id: http://svn.automattic.com/wordpress/trunk@17996 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/post.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/includes/post.php b/wp-admin/includes/post.php index 107016e6ac..a5a56ef7cb 100644 --- a/wp-admin/includes/post.php +++ b/wp-admin/includes/post.php @@ -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 ); }