WordPress.org

Make WordPress Core

Changeset 1019


Ignore:
Timestamp:
03/26/2004 10:16:00 PM (17 years ago)
Author:
alex_t_king
Message:

making the post meta accept 0 as a value

File:
1 edited

Legend:

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

    r990 r1019  
    291291    $metavalue = trim($_POST['metavalue']);
    292292
    293     if ($metavalue && (('#NONE#' != $metakeyselect) || $metakeyinput)) {
     293    if (isset($metavalue) && (('#NONE#' != $metakeyselect) || $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.