mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-03 15:08:10 +01:00
I18N: Move code out of a translatable string in register_rest_route()
.
To simplify the string and exclude any parts that don't require translation, `$args` can be moved out of the string and added as a placeholder. Follow-up to [54339]. See #51986. Built from https://develop.svn.wordpress.org/trunk@54346 git-svn-id: http://core.svn.wordpress.org/trunk@53905 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
bb8988e3ec
commit
2a81bee262
@ -108,8 +108,9 @@ function register_rest_route( $namespace, $route, $args = array(), $override = f
|
||||
_doing_it_wrong(
|
||||
__FUNCTION__,
|
||||
sprintf(
|
||||
/* translators: %s: The REST API route being registered. */
|
||||
__( 'REST API $args should be an array of arrays. Non-array value detected for %s.' ),
|
||||
/* translators: 1: $args, 2: The REST API route being registered. */
|
||||
__( 'REST API %1$s should be an array of arrays. Non-array value detected for %2$s.' ),
|
||||
'<code>$args</code>',
|
||||
'<code>' . $clean_namespace . '/' . trim( $route, '/' ) . '</code>'
|
||||
),
|
||||
'6.1.0'
|
||||
|
@ -16,7 +16,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.1-beta2-54345';
|
||||
$wp_version = '6.1-beta2-54346';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user