From 064d6633b07dfa3b2fde1d11d5d509be73343be3 Mon Sep 17 00:00:00 2001 From: emc3 Date: Mon, 12 Apr 2004 17:31:37 +0000 Subject: [PATCH] Corrected checking for empty vals in postmeta git-svn-id: http://svn.automattic.com/wordpress/trunk@1061 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/admin-functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/admin-functions.php b/wp-admin/admin-functions.php index c715242e30..cd09b7f553 100644 --- a/wp-admin/admin-functions.php +++ b/wp-admin/admin-functions.php @@ -290,7 +290,7 @@ function add_meta($post_ID) { $metakeyinput = trim($_POST['metakeyinput']); $metavalue = trim($_POST['metavalue']); - if (isset($metavalue) && (('#NONE#' != $metakeyselect) || $metakeyinput)) { + if (!empty($metavalue) && ((('#NONE#' != $metakeyselect) && !empty($metakeyselect)) || !empty($metakeyinput))) { // We have a key/value pair. If both the select and the // input for the key have data, the input takes precedence: