From e841840662c83012fa07727cb1c9f7dc7aaf68d8 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 8 Feb 2023 10:17:23 +0000 Subject: [PATCH] Docs: Document possible return values for `wp_get_word_count_type()`. Follow-up to [55279]. See #56698. Built from https://develop.svn.wordpress.org/trunk@55295 git-svn-id: http://core.svn.wordpress.org/trunk@54828 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-locale.php | 5 ++--- wp-includes/l10n.php | 3 ++- wp-includes/version.php | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/wp-includes/class-wp-locale.php b/wp-includes/class-wp-locale.php index 82a79c3750..38b1860b89 100644 --- a/wp-includes/class-wp-locale.php +++ b/wp-includes/class-wp-locale.php @@ -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() { diff --git a/wp-includes/l10n.php b/wp-includes/l10n.php index 3a620ee3ca..52a51d5147 100644 --- a/wp-includes/l10n.php +++ b/wp-includes/l10n.php @@ -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; diff --git a/wp-includes/version.php b/wp-includes/version.php index 55940f1bd0..8ca160a42f 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.2-beta1-55294'; +$wp_version = '6.2-beta1-55295'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.