mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-03 06:57:35 +01:00
Docs: Fix incorrect docblock for WP_Translation_Controller::translate_plural
.
Props szepeviktor. See #60699. Built from https://develop.svn.wordpress.org/trunk@58155 git-svn-id: http://core.svn.wordpress.org/trunk@57618 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
f695d7f8b9
commit
c4dc645821
@ -282,16 +282,16 @@ final class WP_Translation_Controller {
|
|||||||
*
|
*
|
||||||
* @since 6.5.0
|
* @since 6.5.0
|
||||||
*
|
*
|
||||||
* @param array{0: string, 1: string} $plurals {
|
* @param array $plurals {
|
||||||
* Pair of singular and plural translations.
|
* Pair of singular and plural translations.
|
||||||
*
|
*
|
||||||
* @type string $0 Singular translation.
|
* @type string $0 Singular translation.
|
||||||
* @type string $1 Plural translation.
|
* @type string $1 Plural translation.
|
||||||
* }
|
* }
|
||||||
* @param int $number Number of items.
|
* @param int $number Number of items.
|
||||||
* @param string $context Optional. Context for the string. Default empty string.
|
* @param string $context Optional. Context for the string. Default empty string.
|
||||||
* @param string $textdomain Optional. Text domain. Default 'default'.
|
* @param string $textdomain Optional. Text domain. Default 'default'.
|
||||||
* @param string $locale Optional. Locale. Default current locale.
|
* @param string|null $locale Optional. Locale. Default current locale.
|
||||||
* @return string|false Translation on success, false otherwise.
|
* @return string|false Translation on success, false otherwise.
|
||||||
*/
|
*/
|
||||||
public function translate_plural( array $plurals, int $number, string $context = '', string $textdomain = 'default', ?string $locale = null ) {
|
public function translate_plural( array $plurals, int $number, string $context = '', string $textdomain = 'default', ?string $locale = null ) {
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '6.6-alpha-58150';
|
$wp_version = '6.6-alpha-58155';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user