Changeset 41844
- Timestamp:
- 10/12/2017 05:09:10 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/script-loader.php
r41839 r41844 529 529 530 530 $scripts->add( 'word-count', "/wp-admin/js/word-count$suffix.js", array(), false, 1 ); 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 ) );540 531 541 532 $scripts->add( 'media-upload', "/wp-admin/js/media-upload$suffix.js", array( 'thickbox', 'shortcode' ), false, 1 ); … … 1074 1065 'shortcodes' => ! empty( $GLOBALS['shortcode_tags'] ) ? array_keys( $GLOBALS['shortcode_tags'] ) : array() 1075 1066 ) ); 1067 1068 wp_localize_script( 'word-count', 'wordCountL10n', array( 1069 /* 1070 * translators: If your word count is based on single characters (e.g. East Asian characters), 1071 * enter 'characters_excluding_spaces' or 'characters_including_spaces'. Otherwise, enter 'words'. 1072 * Do not translate into your own language. 1073 */ 1074 'type' => _x( 'words', 'Word count type. Do not translate!' ), 1075 'shortcodes' => ! empty( $GLOBALS['shortcode_tags'] ) ? array_keys( $GLOBALS['shortcode_tags'] ) : array() 1076 ) ); 1076 1077 } 1077 1078
Note: See TracChangeset
for help on using the changeset viewer.