close

Make WordPress Core

Changeset 61641


Ignore:
Timestamp:
02/13/2026 11:58:58 PM (4 weeks ago)
Author:
SergeyBiryukov
Message:

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: WPCS: ReservedFunctionNames: ignore deprecated functions.

Follow-up to [46290].

Props rodrigosprimo.
See #64627.

File:
1 edited

Legend:

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

    r61636 r61641  
    18211821 * @see _n()
    18221822 */
    1823 function __ngettext( ...$args ) { // phpcs:ignore PHPCompatibility.FunctionNameRestrictions.ReservedFunctionNames.FunctionDoubleUnderscore
     1823function __ngettext( ...$args ) {
    18241824    _deprecated_function( __FUNCTION__, '2.8.0', '_n()' );
    18251825    return _n( ...$args );
     
    18331833 * @see _n_noop()
    18341834 */
    1835 function __ngettext_noop( ...$args ) { // phpcs:ignore PHPCompatibility.FunctionNameRestrictions.ReservedFunctionNames.FunctionDoubleUnderscore
     1835function __ngettext_noop( ...$args ) {
    18361836    _deprecated_function( __FUNCTION__, '2.8.0', '_n_noop()' );
    18371837    return _n_noop( ...$args );
Note: See TracChangeset for help on using the changeset viewer.