diff --git a/wp-includes/formatting.php b/wp-includes/formatting.php index 166dc5294d..4aaa7ca47f 100644 --- a/wp-includes/formatting.php +++ b/wp-includes/formatting.php @@ -848,7 +848,7 @@ function force_balance_tags( $text ) { // clear the shifter $tagqueue = ''; // Pop or Push - if ($regex[1][0] == "/") { // End Tag + if ( isset($regex[1][0]) && '/' == $regex[1][0] ) { // End Tag $tag = strtolower(substr($regex[1],1)); // if too many closing tags if($stacksize <= 0) {