mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-13 22:26:06 +01:00
Fix PHP notice in force_balance_tags(), props beaulebens, fixes #9067
git-svn-id: http://svn.automattic.com/wordpress/trunk@10523 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
515b09febb
commit
da29afdf3b
@ -848,7 +848,7 @@ function force_balance_tags( $text ) {
|
|||||||
// clear the shifter
|
// clear the shifter
|
||||||
$tagqueue = '';
|
$tagqueue = '';
|
||||||
// Pop or Push
|
// 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));
|
$tag = strtolower(substr($regex[1],1));
|
||||||
// if too many closing tags
|
// if too many closing tags
|
||||||
if($stacksize <= 0) {
|
if($stacksize <= 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user