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:
nbachiyski 2010-10-29 13:37:03 +00:00
parent f5c4171fce
commit c6491e5db4
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 );
}
/**