diff --git a/wp-includes/script-loader.php b/wp-includes/script-loader.php
index 5a6230b..dcebc13 100644
a
|
b
|
function wp_default_scripts( &$scripts ) { |
401 | 401 | |
402 | 402 | $scripts->add( 'word-count', "/wp-admin/js/word-count$suffix.js", array(), false, 1 ); |
403 | 403 | did_action( 'init' ) && $scripts->localize( 'word-count', 'wordCountL10n', array( |
| 404 | /** |
| 405 | * Filter the word count type. |
| 406 | * |
| 407 | * @since 4.3.0 |
| 408 | * |
| 409 | * @param string $type The type of word count. Default 'words'. |
| 410 | * Accepts 'characters', 'all' and 'words'. |
| 411 | */ |
404 | 412 | /* translators: If your word count is based on single characters (East Asian characters), |
405 | 413 | enter 'characters', or 'all' to include spaces. Otherwise, enter 'words'. |
406 | 414 | Do not translate into your own language. */ |
407 | | 'type' => _x( 'words', 'word count: words, characters or all?' ), |
| 415 | 'type' => apply_filters( 'word_count_type', _x( 'words', 'word count: words, characters or all?' ) ), |
408 | 416 | 'shortcodes' => ! empty( $GLOBALS['shortcode_tags'] ) ? array_keys( $GLOBALS['shortcode_tags'] ) : array() |
409 | 417 | ) ); |
410 | 418 | |