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:
Nikolay Bachiyski 2010-10-29 13:37:03 +00:00
parent 71dd59892d
commit 94ed154f65
1 changed files with 2 additions and 2 deletions

View File

@ -275,7 +275,7 @@ function _nx($single, $plural, $number, $context, $domain = 'default') {
* @return array array($single, $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()
*/
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 );
}
/**