Make WordPress Core

Changeset 55295


Ignore:
Timestamp:
02/08/2023 10:15:33 AM (20 months ago)
Author:
SergeyBiryukov
Message:

Docs: Document possible return values for wp_get_word_count_type().

Follow-up to [55279].

See #56698.

Location:
trunk/src/wp-includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-locale.php

    r55279 r55295  
    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() {
  • trunk/src/wp-includes/l10n.php

    r55279 r55295  
    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 */
    18221823function wp_get_word_count_type() {
Note: See TracChangeset for help on using the changeset viewer.