mirror of
git://develop.git.wordpress.org/
synced 2025-02-06 07:28:49 +01:00
Docs: Fix incorrect docblock for WP_Translation_Controller::translate_plural
.
Props szepeviktor. See #60699. git-svn-id: https://develop.svn.wordpress.org/trunk@58155 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
560d18d65c
commit
1975c20523
@ -282,16 +282,16 @@ final class WP_Translation_Controller {
|
||||
*
|
||||
* @since 6.5.0
|
||||
*
|
||||
* @param array{0: string, 1: string} $plurals {
|
||||
* @param array $plurals {
|
||||
* Pair of singular and plural translations.
|
||||
*
|
||||
* @type string $0 Singular translation.
|
||||
* @type string $1 Plural translation.
|
||||
* }
|
||||
* @param int $number Number of items.
|
||||
* @param string $context Optional. Context for the string. Default empty string.
|
||||
* @param string $textdomain Optional. Text domain. Default 'default'.
|
||||
* @param string $locale Optional. Locale. Default current locale.
|
||||
* @param int $number Number of items.
|
||||
* @param string $context Optional. Context for the string. Default empty string.
|
||||
* @param string $textdomain Optional. Text domain. Default 'default'.
|
||||
* @param string|null $locale Optional. Locale. Default current locale.
|
||||
* @return string|false Translation on success, false otherwise.
|
||||
*/
|
||||
public function translate_plural( array $plurals, int $number, string $context = '', string $textdomain = 'default', ?string $locale = null ) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user