Changeset 55279 for trunk/src/wp-includes/formatting.php
- Timestamp:
- 02/07/2023 05:26:14 PM (3 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/formatting.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/formatting.php
r55272 r55279 3946 3946 $num_words = (int) $num_words; 3947 3947 3948 /* 3949 * translators: If your word count is based on single characters (e.g. East Asian characters), 3950 * enter 'characters_excluding_spaces' or 'characters_including_spaces'. Otherwise, enter 'words'. 3951 * Do not translate into your own language. 3952 */ 3953 if ( strpos( _x( 'words', 'Word count type. Do not translate!' ), 'characters' ) === 0 && preg_match( '/^utf\-?8$/i', get_option( 'blog_charset' ) ) ) { 3948 if ( str_starts_with( wp_get_word_count_type(), 'characters' ) && preg_match( '/^utf\-?8$/i', get_option( 'blog_charset' ) ) ) { 3954 3949 $text = trim( preg_replace( "/[\n\r\t ]+/", ' ', $text ), ' ' ); 3955 3950 preg_match_all( '/./u', $text, $words_array );
Note: See TracChangeset
for help on using the changeset viewer.