mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-03 12:14:25 +00:00
Editor: word count: exclude shortcodes
Props desaiuditd, adamsilverstein, azaozz and iseulde. Fixes #27386. See #30966. git-svn-id: https://develop.svn.wordpress.org/trunk@33299 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -400,7 +400,8 @@ function wp_default_scripts( &$scripts ) {
|
||||
/* translators: If your word count is based on single characters (East Asian characters),
|
||||
enter 'characters', or 'all' to include spaces. Otherwise, enter 'words'.
|
||||
Do not translate into your own language. */
|
||||
'type' => _x( 'words', 'word count: words, characters or all?' )
|
||||
'type' => _x( 'words', 'word count: words, characters or all?' ),
|
||||
'shortcodes' => ! empty( $GLOBALS['shortcode_tags'] ) ? array_keys( $GLOBALS['shortcode_tags'] ) : array()
|
||||
) );
|
||||
|
||||
$scripts->add( 'media-upload', "/wp-admin/js/media-upload$suffix.js", array( 'thickbox', 'shortcode' ), false, 1 );
|
||||
|
||||
Reference in New Issue
Block a user