mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-04 01:00:04 +00:00
Check for empty strings before indexing into them. Fixes #15265 props solarissmoke.
git-svn-id: https://develop.svn.wordpress.org/trunk@16112 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1546,7 +1546,7 @@ function wp_tiny_mce( $teeny = false, $settings = false ) {
|
||||
$val = $v ? 'true' : 'false';
|
||||
$mce_options .= $k . ':' . $val . ', ';
|
||||
continue;
|
||||
} elseif ( is_string($v) && ( '{' == $v{0} || '[' == $v{0} ) ) {
|
||||
} elseif ( !empty($v) && is_string($v) && ( '{' == $v{0} || '[' == $v{0} ) ) {
|
||||
$mce_options .= $k . ':' . $v . ', ';
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user