Retain backwards compatiblity for the few plugins using _n_noop()
git-svn-id: http://svn.automattic.com/wordpress/trunk@16075 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
f5c4171fce
commit
c6491e5db4
|
@ -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 );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue