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 );