From 5d53082088969d53aeeabd4c2ebc5b1a446fb41a Mon Sep 17 00:00:00 2001 From: Peter Wilson Date: Mon, 24 Mar 2025 09:07:06 +1100 Subject: [PATCH 1/2] Remove unused sprintf within wp_unique_id_from_values(). --- src/wp-includes/functions.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/wp-includes/functions.php b/src/wp-includes/functions.php index 8366f921578ca..e99d09ad2f7ff 100644 --- a/src/wp-includes/functions.php +++ b/src/wp-includes/functions.php @@ -9193,10 +9193,7 @@ function wp_unique_id_from_values( array $data, string $prefix = '' ): string { if ( empty( $data ) ) { _doing_it_wrong( __FUNCTION__, - sprintf( - __( 'The $data argument must not be empty.' ), - gettype( $data ) - ), + __( 'The $data argument must not be empty.' ), '6.8.0' ); } From c2c1f4eed97a965c09084961086494794197acfd Mon Sep 17 00:00:00 2001 From: Peter Wilson Date: Tue, 25 Mar 2025 12:02:27 +1100 Subject: [PATCH 2/2] Translater note for `$data`. --- src/wp-includes/functions.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/wp-includes/functions.php b/src/wp-includes/functions.php index e99d09ad2f7ff..1be3060703b17 100644 --- a/src/wp-includes/functions.php +++ b/src/wp-includes/functions.php @@ -9193,6 +9193,7 @@ 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.' ), '6.8.0' );