mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
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:
@@ -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 );
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user