From 11b5f8dae8717d4444c8608d3023bbe83dd083bd Mon Sep 17 00:00:00 2001 From: azaozz Date: Sat, 8 Nov 2008 11:18:05 +0000 Subject: [PATCH] Few more notice fixes git-svn-id: http://svn.automattic.com/wordpress/trunk@9570 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/post.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-admin/includes/post.php b/wp-admin/includes/post.php index d9ca48d94f..977b1433e5 100644 --- a/wp-admin/includes/post.php +++ b/wp-admin/includes/post.php @@ -499,9 +499,9 @@ function add_meta( $post_ID ) { $protected = array( '_wp_attached_file', '_wp_attachment_metadata', '_wp_old_slug', '_wp_page_template' ); - $metakeyselect = stripslashes( trim( $_POST['metakeyselect'] ) ); - $metakeyinput = stripslashes( trim( $_POST['metakeyinput'] ) ); - $metavalue = maybe_serialize( stripslashes( trim( $_POST['metavalue'] ) ) ); + $metakeyselect = isset($_POST['metakeyselect']) ? stripslashes( trim( $_POST['metakeyselect'] ) ) : ''; + $metakeyinput = isset($_POST['metakeyinput']) ? stripslashes( trim( $_POST['metakeyinput'] ) ) : ''; + $metavalue = isset($_POST['metavalue']) ? maybe_serialize( stripslashes( trim( $_POST['metavalue'] ) ) ) : ''; if ( ('0' === $metavalue || !empty ( $metavalue ) ) && ((('#NONE#' != $metakeyselect) && !empty ( $metakeyselect) ) || !empty ( $metakeyinput) ) ) { // We have a key/value pair. If both the select and the