Make WordPress Core

Changeset 18074


Ignore:
Timestamp:
05/30/2011 02:12:08 PM (14 years ago)
Author:
azaozz
Message:

Fix notice, props greuben, fixes #17613

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/post.php

    r18071 r18074  
    16501650            $mce_options .= $k . ':' . $val . ', ';
    16511651            continue;
    1652         } elseif ( is_string($v) && ( ('{' == $v{0} && '}' == $v{strlen($v) - 1}) || ('[' == $v{0} && ']' == $v{strlen($v) - 1}) || preg_match('/^\(?function ?\(/', $v) ) ) {
     1652        } elseif ( !empty($v) && is_string($v) && ( ('{' == $v{0} && '}' == $v{strlen($v) - 1}) || ('[' == $v{0} && ']' == $v{strlen($v) - 1}) || preg_match('/^\(?function ?\(/', $v) ) ) {
    16531653            $mce_options .= $k . ':' . $v . ', ';
    16541654            continue;
Note: See TracChangeset for help on using the changeset viewer.