Make WordPress Core


Ignore:
Timestamp:
12/19/2009 10:51:29 AM (15 years ago)
Author:
westi
Message:

Deprecate _nc() as _nx() is a much better was of specifying contexts. Fixes #11404 props nacin.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/deprecated.php

    r12257 r12459  
    18021802 * @since 2.2.0
    18031803 * @deprecated 2.9.0
     1804 * @deprecated Use _x()
     1805 * @see _x()
    18041806 *
    18051807 * @param string $text Text to translate
     
    18111813    return translate_with_context( $text, $domain );
    18121814}
     1815
     1816/**
     1817 * A version of _n(), which supports contexts.
     1818 * Strips everything from the translation after the last bar.
     1819 *
     1820 * @since 2.7.0
     1821 * @deprecated 3.0.0
     1822 * @deprecated Use _nx()
     1823 * @see _nx()
     1824 * @see _n() For parameters.
     1825 * @see _c() For parameters. _c() is deprecated.
     1826 *
     1827 */
     1828function _nc( $single, $plural, $number, $domain = 'default' ) {
     1829    _deprecated_function(__FUNCTION__, '2.9', '_nx' );
     1830    return before_last_bar( _n( $single, $plural, $number, $domain ) );
     1831}
    18131832?>
Note: See TracChangeset for help on using the changeset viewer.