From 932c91b76695d29169c402b479d5ceb4f440396e Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Sat, 19 Dec 2015 08:48:27 +0000 Subject: [PATCH] Docs: Add missing parameter and return notations in the DocBlock for the deprecated `_nc()` function. See #32246. Built from https://develop.svn.wordpress.org/trunk@36024 git-svn-id: http://core.svn.wordpress.org/trunk@35989 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/deprecated.php | 10 +++++++++- wp-includes/version.php | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/wp-includes/deprecated.php b/wp-includes/deprecated.php index 2b8e98fb9c..54d9e0ec30 100644 --- a/wp-includes/deprecated.php +++ b/wp-includes/deprecated.php @@ -1757,12 +1757,20 @@ function translate_with_context( $text, $domain = 'default' ) { } /** - * A version of _n(), which supports contexts. + * Legacy version of _n(), which supports contexts. + * * Strips everything from the translation after the last bar. * * @since 2.7.0 * @deprecated 3.0.0 Use _nx() * @see _nx() + * + * @param string $single The text to be used if the number is singular. + * @param string $plural The text to be used if the number is plural. + * @param int $number The number to compare against to use either the singular or plural form. + * @param string $domain Optional. Text domain. Unique identifier for retrieving translated strings. + * Default 'default'. + * @return string The translated singular or plural form. */ function _nc( $single, $plural, $number, $domain = 'default' ) { _deprecated_function( __FUNCTION__, '2.9', '_nx()' ); diff --git a/wp-includes/version.php b/wp-includes/version.php index 8eecee6172..4675d5d4ff 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.5-alpha-36023'; +$wp_version = '4.5-alpha-36024'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.