Skip to content

Commit 86e3f9d

Browse files
Coding Standards: Remove unnecessary annotations for __ngettext() and __ngettext_noop().
Since PHPCompatibility 9.3.2, the `ReservedFunctionNames` sniff skips functions with a `@deprecated` tag. Reference: [PHPCompatibility/PHPCompatibility#917 WPCS: ReservedFunctionNames: ignore deprecated functions]. Follow-up to [46290]. Props rodrigosprimo. See #64627. git-svn-id: https://develop.svn.wordpress.org/trunk@61641 602fd350-edb4-49c9-b593-d223f7449a82
1 parent d3a355f commit 86e3f9d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/wp-includes/deprecated.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1820,7 +1820,7 @@ function _nc( $single, $plural, $number, $domain = 'default' ) {
18201820
* @deprecated 2.8.0 Use _n()
18211821
* @see _n()
18221822
*/
1823-
function __ngettext( ...$args ) { // phpcs:ignore PHPCompatibility.FunctionNameRestrictions.ReservedFunctionNames.FunctionDoubleUnderscore
1823+
function __ngettext( ...$args ) {
18241824
_deprecated_function( __FUNCTION__, '2.8.0', '_n()' );
18251825
return _n( ...$args );
18261826
}
@@ -1832,7 +1832,7 @@ function __ngettext( ...$args ) { // phpcs:ignore PHPCompatibility.FunctionNameR
18321832
* @deprecated 2.8.0 Use _n_noop()
18331833
* @see _n_noop()
18341834
*/
1835-
function __ngettext_noop( ...$args ) { // phpcs:ignore PHPCompatibility.FunctionNameRestrictions.ReservedFunctionNames.FunctionDoubleUnderscore
1835+
function __ngettext_noop( ...$args ) {
18361836
_deprecated_function( __FUNCTION__, '2.8.0', '_n_noop()' );
18371837
return _n_noop( ...$args );
18381838

0 commit comments

Comments
 (0)