Changeset 55279
- Timestamp:
- 02/07/2023 05:26:14 PM (18 months ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-locale.php
r55047 r55279 112 112 */ 113 113 public $list_item_separator; 114 115 116 117 118 119 120 121 122 123 114 124 115 125 /** … … 237 247 $this->text_direction = 'rtl'; 238 248 } 249 250 251 239 252 } 240 253 … … 397 410 return $this->list_item_separator; 398 411 } 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 399 439 } -
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 ); -
trunk/src/wp-includes/l10n.php
r55196 r55279 1810 1810 return $wp_locale->get_list_item_separator(); 1811 1811 } 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 -
trunk/src/wp-includes/script-loader.php
r55275 r55279 1832 1832 'wordCountL10n', 1833 1833 array( 1834 /* 1835 * translators: If your word count is based on single characters (e.g. East Asian characters), 1836 * enter 'characters_excluding_spaces' or 'characters_including_spaces'. Otherwise, enter 'words'. 1837 * Do not translate into your own language. 1838 */ 1839 'type' => _x( 'words', 'Word count type. Do not translate!' ), 1834 'type' => wp_get_word_count_type(), 1840 1835 'shortcodes' => ! empty( $GLOBALS['shortcode_tags'] ) ? array_keys( $GLOBALS['shortcode_tags'] ) : array(), 1841 1836 ) -
trunk/tests/phpunit/tests/locale.php
r55047 r55279 174 174 $this->assertFalse( $this->locale->is_rtl() ); 175 175 } 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 176 232 } 177 233
Note: See TracChangeset
for help on using the changeset viewer.