From a8b8667730850a80423f2c00c5565327d7d8cc49 Mon Sep 17 00:00:00 2001 From: alex_t_king Date: Fri, 26 Mar 2004 22:16:00 +0000 Subject: [PATCH] making the post meta accept 0 as a value git-svn-id: http://svn.automattic.com/wordpress/trunk@1019 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 3e139f000..c715242e3 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 ($metavalue && (('#NONE#' != $metakeyselect) || $metakeyinput)) { + if (isset($metavalue) && (('#NONE#' != $metakeyselect) || $metakeyinput)) { // We have a key/value pair. If both the select and the // input for the key have data, the input takes precedence: