From 73540ca808a641f9780eedf2b5e68f7dd02791b3 Mon Sep 17 00:00:00 2001 From: audrasjb Date: Tue, 25 Mar 2025 14:31:31 +0000 Subject: [PATCH] Coding Standards: Use `sprintf()` for correct i18n in `wp_unique_id_from_values()`. Follow-up to [60075], [60079]. Fixes #62985. Built from https://develop.svn.wordpress.org/trunk@60085 git-svn-id: http://core.svn.wordpress.org/trunk@59421 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/functions.php | 7 +++++-- wp-includes/version.php | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 1020ffcfa4..ec6cc616dc 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -9193,8 +9193,11 @@ function wp_unique_id_from_values( array $data, string $prefix = '' ): string { if ( empty( $data ) ) { _doing_it_wrong( __FUNCTION__, - // translators: '$data' is the parameter name and must not be translated. - __( 'The $data argument must not be empty.' ), + sprintf( + /* translators: %s: parameter name. */ + __( 'The %s argument must not be empty.' ), + '$data' + ), '6.8.0' ); } diff --git a/wp-includes/version.php b/wp-includes/version.php index e33f5b142b..b5486e1398 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.8-beta3-60084'; +$wp_version = '6.8-beta3-60085'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.