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:
parent
1bd52ae1aa
commit
61bef72b95
|
@ -258,7 +258,7 @@ function wptexturize( $text, $reset = false ) {
|
|||
// Only call _wptexturize_pushpop_element if $curl is a delimiter.
|
||||
$first = $curl[0];
|
||||
if ( '<' === $first && '<!--' === substr( $curl, 0, 4 ) ) {
|
||||
// This is an HTML comment delimeter.
|
||||
// This is an HTML comment delimiter.
|
||||
|
||||
continue;
|
||||
|
||||
|
@ -669,7 +669,7 @@ function wp_replace_in_html_tags( $haystack, $replace_pairs ) {
|
|||
// Extract $needle and $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 ) {
|
||||
if ( false !== strpos( $textarr[$i], $needle ) ) {
|
||||
$textarr[$i] = str_replace( $needle, $replace, $textarr[$i] );
|
||||
|
@ -680,7 +680,7 @@ function wp_replace_in_html_tags( $haystack, $replace_pairs ) {
|
|||
// Extract all $needles.
|
||||
$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 ) {
|
||||
foreach ( $needles as $needle ) {
|
||||
if ( false !== strpos( $textarr[$i], $needle ) ) {
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @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.
|
||||
|
|
Loading…
Reference in New Issue