531 | | did_action( 'init' ) && $scripts->localize( 'word-count', 'wordCountL10n', array( |
532 | | /* |
533 | | * translators: If your word count is based on single characters (e.g. East Asian characters), |
534 | | * enter 'characters_excluding_spaces' or 'characters_including_spaces'. Otherwise, enter 'words'. |
535 | | * Do not translate into your own language. |
536 | | */ |
537 | | 'type' => _x( 'words', 'Word count type. Do not translate!' ), |
538 | | 'shortcodes' => ! empty( $GLOBALS['shortcode_tags'] ) ? array_keys( $GLOBALS['shortcode_tags'] ) : array() |
539 | | ) ); |
| 1045 | |
| 1046 | wp_localize_script( 'word-count', 'wordCountL10n', array( |
| 1047 | /* |
| 1048 | * translators: If your word count is based on single characters (e.g. East Asian characters), |
| 1049 | * enter 'characters_excluding_spaces' or 'characters_including_spaces'. Otherwise, enter 'words'. |
| 1050 | * Do not translate into your own language. |
| 1051 | */ |
| 1052 | 'type' => _x( 'words', 'Word count type. Do not translate!' ), |
| 1053 | 'shortcodes' => ! empty( $GLOBALS['shortcode_tags'] ) ? array_keys( $GLOBALS['shortcode_tags'] ) : array() |
| 1054 | ) ); |