From fd5da3a85e59a237d6f10b06acc5d76d52174528 Mon Sep 17 00:00:00 2001 From: ryan Date: Tue, 19 Jun 2007 22:42:25 +0000 Subject: [PATCH] Protect _wp_page_template too. git-svn-id: http://svn.automattic.com/wordpress/trunk@5733 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 8e3a75821d..efebd539da 100644 --- a/wp-admin/includes/post.php +++ b/wp-admin/includes/post.php @@ -336,7 +336,7 @@ function add_meta( $post_ID ) { global $wpdb; $post_ID = (int) $post_ID; - $protected = array( '_wp_attached_file', '_wp_attachment_metadata', '_wp_old_slug' ); + $protected = array( '_wp_attached_file', '_wp_attachment_metadata', '_wp_old_slug', '_wp_page_template' ); $metakeyselect = $wpdb->escape( stripslashes( trim( $_POST['metakeyselect'] ) ) ); $metakeyinput = $wpdb->escape( stripslashes( trim( $_POST['metakeyinput'] ) ) ); @@ -411,7 +411,7 @@ function has_meta( $postid ) { function update_meta( $mid, $mkey, $mvalue ) { global $wpdb; - $protected = array( '_wp_attached_file', '_wp_attachment_metadata', '_wp_old_slug' ); + $protected = array( '_wp_attached_file', '_wp_attachment_metadata', '_wp_old_slug', '_wp_page_template' ); if ( in_array($mkey, $protected) ) return false;