Fix a typo in `wptexturize()` and `wp_replace_in_html_tags()` comments.

Props bobbingwide.
See #15694.
Built from https://develop.svn.wordpress.org/trunk@34222


git-svn-id: http://core.svn.wordpress.org/trunk@34186 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2015-09-16 05:54:26 +00:00
parent 1bd52ae1aa
commit 61bef72b95
2 changed files with 4 additions and 4 deletions

View File

@ -258,7 +258,7 @@ function wptexturize( $text, $reset = false ) {
// Only call _wptexturize_pushpop_element if $curl is a delimiter. // Only call _wptexturize_pushpop_element if $curl is a delimiter.
$first = $curl[0]; $first = $curl[0];
if ( '<' === $first && '<!--' === substr( $curl, 0, 4 ) ) { if ( '<' === $first && '<!--' === substr( $curl, 0, 4 ) ) {
// This is an HTML comment delimeter. // This is an HTML comment delimiter.
continue; continue;
@ -669,7 +669,7 @@ function wp_replace_in_html_tags( $haystack, $replace_pairs ) {
// Extract $needle and $replace. // Extract $needle and $replace.
foreach ( $replace_pairs as $needle => $replace ); foreach ( $replace_pairs as $needle => $replace );
// Loop through delimeters (elements) only. // Loop through delimiters (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 ) ) { if ( false !== strpos( $textarr[$i], $needle ) ) {
$textarr[$i] = str_replace( $needle, $replace, $textarr[$i] ); $textarr[$i] = str_replace( $needle, $replace, $textarr[$i] );
@ -680,7 +680,7 @@ function wp_replace_in_html_tags( $haystack, $replace_pairs ) {
// Extract all $needles. // Extract all $needles.
$needles = array_keys( $replace_pairs ); $needles = array_keys( $replace_pairs );
// Loop through delimeters (elements) only. // Loop through delimiters (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 ) { foreach ( $needles as $needle ) {
if ( false !== strpos( $textarr[$i], $needle ) ) { if ( false !== strpos( $textarr[$i], $needle ) ) {

View File

@ -4,7 +4,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '4.4-alpha-34221'; $wp_version = '4.4-alpha-34222';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.