WordPress.org

Make WordPress Core


Ignore:
Timestamp:
08/13/2014 03:55:10 AM (7 years ago)
Author:
DrewAPicture
Message:

Fix some documentation typos in various core files.

Props vlajos.
Fixes #29199.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/formatting.php

    r29431 r29479  
    228228
    229229    foreach ( $textarr as &$curl ) {
    230         // Only call _wptexturize_pushpop_element if $curl is a delimeter.
     230        // Only call _wptexturize_pushpop_element if $curl is a delimiter.
    231231        $first = $curl[0];
    232232        if ( '<' === $first && '>' === substr( $curl, -1 ) ) {
    233             // This is an HTML delimeter.
     233            // This is an HTML delimiter.
    234234
    235235            if ( '<!--' !== substr( $curl, 0, 4 ) ) {
     
    238238
    239239        } elseif ( '' === trim( $curl ) ) {
    240             // This is a newline between delimeters.  Performance improves when we check this.
     240            // This is a newline between delimiters.  Performance improves when we check this.
    241241
    242242            continue;
    243243
    244244        } elseif ( '[' === $first && 1 === preg_match( '/^\[(?:[^\[\]<>]|<[^>]+>)++\]$/', $curl ) ) {
    245             // This is a shortcode delimeter.
     245            // This is a shortcode delimiter.
    246246
    247247            _wptexturize_pushpop_element( $curl, $no_texturize_shortcodes_stack, $no_texturize_shortcodes );
    248248
    249249        } elseif ( '[' === $first && 1 === preg_match( '/^\[\[?(?:[^\[\]<>]|<[^>]+>)++\]\]?$/', $curl ) ) {
    250             // This is an escaped shortcode delimeter.
     250            // This is an escaped shortcode delimiter.
    251251
    252252            // Do not texturize.
     
    256256
    257257        } elseif ( empty( $no_texturize_shortcodes_stack ) && empty( $no_texturize_tags_stack ) ) {
    258             // This is neither a delimeter, nor is this content inside of no_texturize pairs.  Do texturize.
     258            // This is neither a delimiter, nor is this content inside of no_texturize pairs.  Do texturize.
    259259
    260260            $curl = str_replace( $static_characters, $static_replacements, $curl );
Note: See TracChangeset for help on using the changeset viewer.