Make WordPress Core

Changeset 58155


Ignore:
Timestamp:
05/15/2024 09:05:52 AM (7 months ago)
Author:
swissspidy
Message:

Docs: Fix incorrect docblock for WP_Translation_Controller::translate_plural.

Props szepeviktor.
See #60699.

File:
1 edited

Legend:

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

    r58009 r58155  
    283283     * @since 6.5.0
    284284     *
    285      * @param array{0: string, 1: string} $plurals {
     285     * @param array      $plurals {
    286286     *     Pair of singular and plural translations.
    287287     *
     
    289289     *     @type string $1 Plural translation.
    290290     * }
    291      * @param int                         $number     Number of items.
    292      * @param string                      $context    Optional. Context for the string. Default empty string.
    293      * @param string                      $textdomain Optional. Text domain. Default 'default'.
    294      * @param string                      $locale     Optional. Locale. Default current locale.
     291     * @param int         $number     Number of items.
     292     * @param string      $context    Optional. Context for the string. Default empty string.
     293     * @param string      $textdomain Optional. Text domain. Default 'default'.
     294     * @param string|null $locale     Optional. Locale. Default current locale.
    295295     * @return string|false Translation on success, false otherwise.
    296296     */
Note: See TracChangeset for help on using the changeset viewer.