From b2da8bbcc9f5bc7552869859d01a0e683cd09510 Mon Sep 17 00:00:00 2001 From: Pascal Birchler Date: Tue, 30 Apr 2024 08:55:04 +0000 Subject: [PATCH] I18N: Fix plural usage in `wp_print_admin_notice_templates()`. Moves the translatable strings from the JS template defined in PHP to the `updates.js` script, where `_n()` can be used as recommended. Props ideag, SergeyBiryukov, daledupreez, audrasjb, ocean90, swissspidy. Fixes #37287. Built from https://develop.svn.wordpress.org/trunk@58064 git-svn-id: http://core.svn.wordpress.org/trunk@57529 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/update.php | 46 +++++------------------------------- wp-admin/js/updates.js | 36 ++++++++++++++++++++++++---- wp-admin/js/updates.min.js | 2 +- wp-includes/version.php | 2 +- 4 files changed, 40 insertions(+), 46 deletions(-) diff --git a/wp-admin/includes/update.php b/wp-admin/includes/update.php index ba27ddd0c1..9b8b17e058 100644 --- a/wp-admin/includes/update.php +++ b/wp-admin/includes/update.php @@ -923,48 +923,14 @@ function wp_print_admin_notice_templates() {
id="{{ data.id }}"<# } #> class="notice {{ data.className }}">

{{{ data.message }}}