WordPress.org

Make WordPress Core

Changeset 16112


Ignore:
Timestamp:
10/31/2010 09:29:57 AM (8 years ago)
Author:
westi
Message:

Check for empty strings before indexing into them. Fixes #15265 props solarissmoke.

File:
1 edited

Legend:

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

    r16090 r16112  
    15471547            $mce_options .= $k . ':' . $val . ', ';
    15481548            continue;
    1549         } elseif ( is_string($v) && ( '{' == $v{0} || '[' == $v{0} ) ) {
     1549        } elseif ( !empty($v) && is_string($v) && ( '{' == $v{0} || '[' == $v{0} ) ) {
    15501550            $mce_options .= $k . ':' . $v . ', ';
    15511551            continue;
Note: See TracChangeset for help on using the changeset viewer.