Make WordPress Core

Changeset 53691


Ignore:
Timestamp:
07/10/2022 12:05:59 AM (2 years ago)
Author:
SergeyBiryukov
Message:

Docs: Correct the type of the $number parameter in ngettext* filters.

This applies to:

  • ngettext
  • ngettext_{$domain}
  • ngettext_with_context
  • ngettext_with_context_{$domain}

Follow-up to [25565], [48136].

Props cyrillbolliger.
Fixes #56187.

File:
1 edited

Legend:

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

    r53543 r53691  
    483483     * @param string $single      The text to be used if the number is singular.
    484484     * @param string $plural      The text to be used if the number is plural.
    485      * @param string $number      The number to compare against to use either the singular or plural form.
     485     * @param int    $number      The number to compare against to use either the singular or plural form.
    486486     * @param string $domain      Text domain. Unique identifier for retrieving translated strings.
    487487     */
     
    498498     * @param string $single      The text to be used if the number is singular.
    499499     * @param string $plural      The text to be used if the number is plural.
    500      * @param string $number      The number to compare against to use either the singular or plural form.
     500     * @param int    $number      The number to compare against to use either the singular or plural form.
    501501     * @param string $domain      Text domain. Unique identifier for retrieving translated strings.
    502502     */
     
    542542     * @param string $single      The text to be used if the number is singular.
    543543     * @param string $plural      The text to be used if the number is plural.
    544      * @param string $number      The number to compare against to use either the singular or plural form.
     544     * @param int    $number      The number to compare against to use either the singular or plural form.
    545545     * @param string $context     Context information for the translators.
    546546     * @param string $domain      Text domain. Unique identifier for retrieving translated strings.
     
    558558     * @param string $single      The text to be used if the number is singular.
    559559     * @param string $plural      The text to be used if the number is plural.
    560      * @param string $number      The number to compare against to use either the singular or plural form.
     560     * @param int    $number      The number to compare against to use either the singular or plural form.
    561561     * @param string $context     Context information for the translators.
    562562     * @param string $domain      Text domain. Unique identifier for retrieving translated strings.
Note: See TracChangeset for help on using the changeset viewer.