From 0597ad55c49c82cce365a21fab4ec9436ad688bb Mon Sep 17 00:00:00 2001 From: westi Date: Sun, 31 Oct 2010 09:29:57 +0000 Subject: [PATCH] Check for empty strings before indexing into them. Fixes #15265 props solarissmoke. git-svn-id: http://svn.automattic.com/wordpress/trunk@16112 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/post.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/includes/post.php b/wp-admin/includes/post.php index da90f3de30..bb6a943166 100644 --- a/wp-admin/includes/post.php +++ b/wp-admin/includes/post.php @@ -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; }