Skip to content

Commit a8b0726

Browse files
committed
Editor: Tidy up _doing_it_wrong() call in wp_unique_id_from_values().
Adds a translator note not to translate the parameter name `$data` and removes an unused `sprintf()` that doesn't contain any placeholders. Props peterwilsoncc, joemcgill. Fixes #62985. git-svn-id: https://develop.svn.wordpress.org/trunk@60075 602fd350-edb4-49c9-b593-d223f7449a82
1 parent d0d89b6 commit a8b0726

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

src/wp-includes/functions.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9193,10 +9193,8 @@ function wp_unique_id_from_values( array $data, string $prefix = '' ): string {
91939193
if ( empty( $data ) ) {
91949194
_doing_it_wrong(
91959195
__FUNCTION__,
9196-
sprintf(
9197-
__( 'The $data argument must not be empty.' ),
9198-
gettype( $data )
9199-
),
9196+
// translators: $data` is the parameter name and must not be translated.
9197+
__( 'The $data argument must not be empty.' ),
92009198
'6.8.0'
92019199
);
92029200
}

0 commit comments

Comments
 (0)