Make WordPress Core

Changeset 57161


Ignore:
Timestamp:
12/06/2023 11:48:04 AM (3 months ago)
Author:
SergeyBiryukov
Message:

I18N: Deprecate Gettext_Translations::parenthesize_plural_exression().

Aside from having a typo in the name, the method is unused by core as of WordPress 4.9.

Follow-up to [10584], [12079], [41722].

Props tohincoderex, jrf.
Fixes #59347.

File:
1 edited

Legend:

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

    r56549 r57161  
    249249         * Adds parentheses to the inner parts of ternary operators in
    250250         * plural expressions, because PHP evaluates ternary oerators from left to right
     251         *
     252         * @deprecated 6.5.0 Use the Plural_Forms class instead.
     253         * @see Plural_Forms
    251254         *
    252255         * @param string $expression the expression without parentheses
Note: See TracChangeset for help on using the changeset viewer.