From f4f1b4821342fd1d58708356b3ec39d6fefe31ac Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Fri, 24 Jul 2015 17:26:09 +0000 Subject: [PATCH] Pinking shears. git-svn-id: https://develop.svn.wordpress.org/trunk@33411 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/formatting.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wp-includes/formatting.php b/src/wp-includes/formatting.php index f47d9a29f4..a2cda11b94 100644 --- a/src/wp-includes/formatting.php +++ b/src/wp-includes/formatting.php @@ -633,7 +633,7 @@ function wp_replace_in_html_tags( $haystack, $replace_pairs ) { foreach ( $replace_pairs as $needle => $replace ); // Loop through delimeters (elements) only. - for ( $i = 1, $c = count( $textarr ); $i < $c; $i += 2 ) { + for ( $i = 1, $c = count( $textarr ); $i < $c; $i += 2 ) { if ( false !== strpos( $textarr[$i], $needle ) ) { $textarr[$i] = str_replace( $needle, $replace, $textarr[$i] ); $changed = true; @@ -644,7 +644,7 @@ function wp_replace_in_html_tags( $haystack, $replace_pairs ) { $needles = array_keys( $replace_pairs ); // Loop through delimeters (elements) only. - for ( $i = 1, $c = count( $textarr ); $i < $c; $i += 2 ) { + for ( $i = 1, $c = count( $textarr ); $i < $c; $i += 2 ) { foreach ( $needles as $needle ) { if ( false !== strpos( $textarr[$i], $needle ) ) { $textarr[$i] = strtr( $textarr[$i], $replace_pairs );