Make WordPress Core

Changeset 28724


Ignore:
Timestamp:
06/10/2014 06:45:38 AM (10 years ago)
Author:
DrewAPicture
Message:

Improve inline documentation for the wp_spaces_regexp filter.

Fixes #27588.

File:
1 edited

Legend:

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

    r28723 r28724  
    38783878    if ( empty( $spaces ) ) {
    38793879        /**
    3880          * Regexp for common whitespace characters.
     3880         * Filter the regexp for common whitespace characters.
    38813881         *
    3882          * This string is substituted for the \s sequence as needed in regular expressions.
    3883          * For websites not written in English, different characters may represent whitespace.
    3884          * For websites not encoded in UTF-8, the 0xC2 0xA0 sequence may not be in use.
     3882         * This string is substituted for the \s sequence as needed in regular
     3883         * expressions. For websites not written in English, different characters
     3884         * may represent whitespace. For websites not encoded in UTF-8, the 0xC2 0xA0
     3885         * sequence may not be in use.
    38853886         *
    38863887         * @since 4.0.0
    38873888         *
    3888          * @param string $spaces
     3889         * @param string $spaces Regexp pattern for matching common whitespace characters.
    38893890         */
    38903891        $spaces = apply_filters( 'wp_spaces_regexp', '[\r\n\t ]|\xC2\xA0| ' );
Note: See TracChangeset for help on using the changeset viewer.