mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-16 23:00:21 +00:00
Deprecate _nc() as _nx() is a much better was of specifying contexts. Fixes #11404 props nacin.
git-svn-id: https://develop.svn.wordpress.org/trunk@12459 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1801,6 +1801,8 @@ function make_url_footnote( $content ) {
|
||||
*
|
||||
* @since 2.2.0
|
||||
* @deprecated 2.9.0
|
||||
* @deprecated Use _x()
|
||||
* @see _x()
|
||||
*
|
||||
* @param string $text Text to translate
|
||||
* @param string $domain Optional. Domain to retrieve the translated text
|
||||
@@ -1810,4 +1812,21 @@ function _c( $text, $domain = 'default' ) {
|
||||
_deprecated_function(__FUNCTION__, '2.9', '_x' );
|
||||
return translate_with_context( $text, $domain );
|
||||
}
|
||||
?>
|
||||
|
||||
/**
|
||||
* A version of _n(), which supports contexts.
|
||||
* Strips everything from the translation after the last bar.
|
||||
*
|
||||
* @since 2.7.0
|
||||
* @deprecated 3.0.0
|
||||
* @deprecated Use _nx()
|
||||
* @see _nx()
|
||||
* @see _n() For parameters.
|
||||
* @see _c() For parameters. _c() is deprecated.
|
||||
*
|
||||
*/
|
||||
function _nc( $single, $plural, $number, $domain = 'default' ) {
|
||||
_deprecated_function(__FUNCTION__, '2.9', '_nx' );
|
||||
return before_last_bar( _n( $single, $plural, $number, $domain ) );
|
||||
}
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user