Skip to content

Commit fe11908

Browse files
Docs: Document possible return values for wp_get_word_count_type().
Follow-up to [55279]. See #56698. git-svn-id: https://develop.svn.wordpress.org/trunk@55295 602fd350-edb4-49c9-b593-d223f7449a82
1 parent b46b855 commit fe11908

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/wp-includes/class-wp-locale.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -413,11 +413,10 @@ public function get_list_item_separator() {
413413
/**
414414
* Retrieves the localized word count type.
415415
*
416-
* Options are 'characters_excluding_spaces', 'characters_including_spaces or 'words'. Defaults to 'words'.
417-
*
418416
* @since 6.2.0
419417
*
420-
* @return string Localized word count type.
418+
* @return string Localized word count type. Possible values are `characters_excluding_spaces`,
419+
* `characters_including_spaces`, or `words`. Defaults to `words`.
421420
*/
422421
public function get_word_count_type() {
423422

src/wp-includes/l10n.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1817,7 +1817,8 @@ function wp_get_list_item_separator() {
18171817
*
18181818
* @global WP_Locale $wp_locale WordPress date and time locale object.
18191819
*
1820-
* @return string Locale-specific word count type.
1820+
* @return string Locale-specific word count type. Possible values are `characters_excluding_spaces`,
1821+
* `characters_including_spaces`, or `words`. Defaults to `words`.
18211822
*/
18221823
function wp_get_word_count_type() {
18231824
global $wp_locale;

0 commit comments

Comments
 (0)