From 68ded6f3aa972a0b95dcbcc6f42afb00dc9ccdd6 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 6 Dec 2023 11:48:04 +0000 Subject: [PATCH] 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. git-svn-id: https://develop.svn.wordpress.org/trunk@57161 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/pomo/translations.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/wp-includes/pomo/translations.php b/src/wp-includes/pomo/translations.php index a5534a8ea9..0793b296b7 100644 --- a/src/wp-includes/pomo/translations.php +++ b/src/wp-includes/pomo/translations.php @@ -249,6 +249,9 @@ if ( ! class_exists( 'Translations', false ) ) : * Adds parentheses to the inner parts of ternary operators in * plural expressions, because PHP evaluates ternary oerators from left to right * + * @deprecated 6.5.0 Use the Plural_Forms class instead. + * @see Plural_Forms + * * @param string $expression the expression without parentheses * @return string the expression with parentheses added */