mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
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.
git-svn-id: https://develop.svn.wordpress.org/trunk@53691 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
464f94f21b
commit
01021eb8f6
@ -482,7 +482,7 @@ function _n( $single, $plural, $number, $domain = 'default' ) {
|
||||
* @param string $translation Translated text.
|
||||
* @param string $single The text to be used if the number is singular.
|
||||
* @param string $plural The text to be used if the number is plural.
|
||||
* @param string $number The number to compare against to use either the singular or plural form.
|
||||
* @param int $number The number to compare against to use either the singular or plural form.
|
||||
* @param string $domain Text domain. Unique identifier for retrieving translated strings.
|
||||
*/
|
||||
$translation = apply_filters( 'ngettext', $translation, $single, $plural, $number, $domain );
|
||||
@ -497,7 +497,7 @@ function _n( $single, $plural, $number, $domain = 'default' ) {
|
||||
* @param string $translation Translated text.
|
||||
* @param string $single The text to be used if the number is singular.
|
||||
* @param string $plural The text to be used if the number is plural.
|
||||
* @param string $number The number to compare against to use either the singular or plural form.
|
||||
* @param int $number The number to compare against to use either the singular or plural form.
|
||||
* @param string $domain Text domain. Unique identifier for retrieving translated strings.
|
||||
*/
|
||||
$translation = apply_filters( "ngettext_{$domain}", $translation, $single, $plural, $number, $domain );
|
||||
@ -541,7 +541,7 @@ function _nx( $single, $plural, $number, $context, $domain = 'default' ) {
|
||||
* @param string $translation Translated text.
|
||||
* @param string $single The text to be used if the number is singular.
|
||||
* @param string $plural The text to be used if the number is plural.
|
||||
* @param string $number The number to compare against to use either the singular or plural form.
|
||||
* @param int $number The number to compare against to use either the singular or plural form.
|
||||
* @param string $context Context information for the translators.
|
||||
* @param string $domain Text domain. Unique identifier for retrieving translated strings.
|
||||
*/
|
||||
@ -557,7 +557,7 @@ function _nx( $single, $plural, $number, $context, $domain = 'default' ) {
|
||||
* @param string $translation Translated text.
|
||||
* @param string $single The text to be used if the number is singular.
|
||||
* @param string $plural The text to be used if the number is plural.
|
||||
* @param string $number The number to compare against to use either the singular or plural form.
|
||||
* @param int $number The number to compare against to use either the singular or plural form.
|
||||
* @param string $context Context information for the translators.
|
||||
* @param string $domain Text domain. Unique identifier for retrieving translated strings.
|
||||
*/
|
||||
|
||||
Loading…
Reference in New Issue
Block a user