From f82a14802ea75be7b30e2560918c3ff7015b5b90 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Sun, 22 May 2011 23:21:34 +0000 Subject: [PATCH] Use correct keys git-svn-id: https://develop.svn.wordpress.org/trunk@17996 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 ); }