Retain backwards compatiblity for the few plugins using _n_noop()
git-svn-id: https://develop.svn.wordpress.org/trunk@16075 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
71dd59892d
commit
94ed154f65
|
@ -275,7 +275,7 @@ function _nx($single, $plural, $number, $context, $domain = 'default') {
|
||||||
* @return array array($single, $plural)
|
* @return array array($single, $plural)
|
||||||
*/
|
*/
|
||||||
function _n_noop( $singular, $plural ) {
|
function _n_noop( $singular, $plural ) {
|
||||||
return array( 'singular' => $singular, 'plural' => $plural, 'context' => null );
|
return array( 0 => $singular, 1 => $plural, 'singular' => $singular, 'plural' => $plural, 'context' => null );
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -284,7 +284,7 @@ function _n_noop( $singular, $plural ) {
|
||||||
* @see _n_noop()
|
* @see _n_noop()
|
||||||
*/
|
*/
|
||||||
function _nx_noop( $singular, $plural, $context ) {
|
function _nx_noop( $singular, $plural, $context ) {
|
||||||
return array( 'singular' => $singular, 'plural' => $plural, 'context' => $context );
|
return array( 0 => $singular, 1 => $plural, 2 => $context, 'singular' => $singular, 'plural' => $plural, 'context' => $context );
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue