Changeset 60399 for trunk/src/wp-includes/formatting.php
- Timestamp:
- 07/01/2025 03:38:44 PM (8 months ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/formatting.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/formatting.php
r60249 r60399 2036 2036 2037 2037 if ( $utf8_pcre ) { 2038 $filename = preg_replace( "#\x{00a0}#siu", ' ', $filename ); 2038 /** 2039 * Replace all whitespace characters with a basic space (U+0020). 2040 * 2041 * The “Zs” in the pattern selects characters in the `Space_Separator` 2042 * category, which is what Unicode considers space characters. 2043 * 2044 * @see https://www.unicode.org/reports/tr44/#General_Category_Values 2045 * @see https://www.unicode.org/versions/Unicode16.0.0/core-spec/chapter-6/#G17548 2046 * @see https://www.php.net/manual/en/regexp.reference.unicode.php 2047 */ 2048 $filename = preg_replace( '#\p{Zs}#siu', ' ', $filename ); 2039 2049 } 2040 2050
Note: See TracChangeset
for help on using the changeset viewer.