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
This commit is contained in:
Sergey Biryukov 2023-02-08 10:15:33 +00:00
parent b46b855070
commit fe119088ec
2 changed files with 4 additions and 4 deletions

View File

@ -413,11 +413,10 @@ class WP_Locale {
/**
* Retrieves the localized word count type.
*
* Options are 'characters_excluding_spaces', 'characters_including_spaces or 'words'. Defaults to 'words'.
*
* @since 6.2.0
*
* @return string Localized word count type.
* @return string Localized word count type. Possible values are `characters_excluding_spaces`,
* `characters_including_spaces`, or `words`. Defaults to `words`.
*/
public function get_word_count_type() {

View File

@ -1817,7 +1817,8 @@ function wp_get_list_item_separator() {
*
* @global WP_Locale $wp_locale WordPress date and time locale object.
*
* @return string Locale-specific word count type.
* @return string Locale-specific word count type. Possible values are `characters_excluding_spaces`,
* `characters_including_spaces`, or `words`. Defaults to `words`.
*/
function wp_get_word_count_type() {
global $wp_locale;