Make WordPress Core


Ignore:
Timestamp:
04/12/2004 05:31:37 PM (21 years ago)
Author:
emc3
Message:

Corrected checking for empty vals in postmeta

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin-functions.php

    r1019 r1061  
    291291    $metavalue = trim($_POST['metavalue']);
    292292
    293     if (isset($metavalue) && (('#NONE#' != $metakeyselect) || $metakeyinput)) {
     293    if (!empty($metavalue) && ((('#NONE#' != $metakeyselect) && !empty($metakeyselect)) || !empty($metakeyinput))) {
    294294        // We have a key/value pair. If both the select and the
    295295        // input for the key have data, the input takes precedence:
Note: See TracChangeset for help on using the changeset viewer.