mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 15:50:09 +00:00
Editor: word count: better names for types.
Also fix it in wp_trim_words(). Fixes #30966. git-svn-id: https://develop.svn.wordpress.org/trunk@33440 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -61,8 +61,8 @@
|
||||
].join( '' ), 'g' ),
|
||||
astralRegExp: /[\uD800-\uDBFF][\uDC00-\uDFFF]/g,
|
||||
wordsRegExp: /\S\s+/g,
|
||||
charactersRegExp: /\S/g,
|
||||
allRegExp: /[^\f\n\r\t\v\u00AD\u2028\u2029]/g,
|
||||
characters_excluding_spacesRegExp: /\S/g,
|
||||
characters_including_spacesRegExp: /[^\f\n\r\t\v\u00AD\u2028\u2029]/g,
|
||||
l10n: window.wordCountL10n || {}
|
||||
};
|
||||
|
||||
@@ -71,7 +71,7 @@
|
||||
|
||||
type = type || this.settings.l10n.type;
|
||||
|
||||
if ( type !== 'characters' && type !== 'all' ) {
|
||||
if ( type !== 'characters_excluding_spaces' && type !== 'characters_including_spaces' ) {
|
||||
type = 'words';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user