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:
Ella Iseulde Van Dorpe
2015-07-27 11:18:55 +00:00
parent 70dd339fa3
commit aed9a8c5bc
4 changed files with 37 additions and 31 deletions

View File

@@ -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';
}