From 4733722de5cdfc7cd7e4b73f8f28654b7cbc0378 Mon Sep 17 00:00:00 2001 From: Dougal Campbell Date: Mon, 12 Apr 2004 17:31:37 +0000 Subject: [PATCH] Corrected checking for empty vals in postmeta git-svn-id: https://develop.svn.wordpress.org/trunk@1061 602fd350-edb4-49c9-b593-d223f7449a82 --- 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: