diff --git a/wp-admin/admin-functions.php b/wp-admin/admin-functions.php index 3e139f0000..c715242e30 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: