mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +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:
@@ -44,6 +44,13 @@
|
||||
words: 3,
|
||||
characters: 14,
|
||||
all: 14
|
||||
},
|
||||
{
|
||||
message: 'Shortcodes.',
|
||||
string: 'one [shortcode attribute="value"]two[/shortcode]three',
|
||||
words: 3,
|
||||
characters: 11,
|
||||
all: 12
|
||||
}
|
||||
], function( test ) {
|
||||
_.each( [ 'words', 'characters', 'all' ], function( type ) {
|
||||
@@ -51,4 +58,8 @@
|
||||
} );
|
||||
} );
|
||||
} );
|
||||
} )( window.QUnit, new window.wp.utils.WordCounter() );
|
||||
} )( window.QUnit, new window.wp.utils.WordCounter( {
|
||||
l10n: {
|
||||
shortcodes: [ 'shortcode' ]
|
||||
}
|
||||
} ) );
|
||||
|
||||
Reference in New Issue
Block a user