From 5755eaf372cdcdb6aab0abe4cdae2a4e48062066 Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Tue, 10 Jun 2014 06:46:15 +0000 Subject: [PATCH] Improve inline documentation for the `wp_spaces_regexp` filter. Fixes #27588. Built from https://develop.svn.wordpress.org/trunk@28724 git-svn-id: http://core.svn.wordpress.org/trunk@28538 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/formatting.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/wp-includes/formatting.php b/wp-includes/formatting.php index b139b7d96a..36e34a19e9 100644 --- a/wp-includes/formatting.php +++ b/wp-includes/formatting.php @@ -3877,15 +3877,16 @@ function wp_spaces_regexp() { if ( empty( $spaces ) ) { /** - * Regexp for common whitespace characters. + * Filter the regexp for common whitespace characters. * - * This string is substituted for the \s sequence as needed in regular expressions. - * For websites not written in English, different characters may represent whitespace. - * For websites not encoded in UTF-8, the 0xC2 0xA0 sequence may not be in use. + * This string is substituted for the \s sequence as needed in regular + * expressions. For websites not written in English, different characters + * may represent whitespace. For websites not encoded in UTF-8, the 0xC2 0xA0 + * sequence may not be in use. * * @since 4.0.0 * - * @param string $spaces + * @param string $spaces Regexp pattern for matching common whitespace characters. */ $spaces = apply_filters( 'wp_spaces_regexp', '[\r\n\t ]|\xC2\xA0| ' ); }