mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
REST API: Move translator comments to preceding line.
Inline translator comments break POT file generation. Props dd32. See #38791. git-svn-id: https://develop.svn.wordpress.org/trunk@39239 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -974,7 +974,8 @@ class WP_REST_Users_Controller extends WP_REST_Controller {
|
||||
foreach ( $roles as $role ) {
|
||||
|
||||
if ( ! isset( $wp_roles->role_objects[ $role ] ) ) {
|
||||
return new WP_Error( 'rest_user_invalid_role', sprintf( __( /* translators: %s: role key */ 'The role %s does not exist.' ), $role ), array( 'status' => 400 ) );
|
||||
/* translators: %s: role key */
|
||||
return new WP_Error( 'rest_user_invalid_role', sprintf( __( 'The role %s does not exist.' ), $role ), array( 'status' => 400 ) );
|
||||
}
|
||||
|
||||
$potential_role = $wp_roles->role_objects[ $role ];
|
||||
@@ -1206,7 +1207,8 @@ class WP_REST_Users_Controller extends WP_REST_Controller {
|
||||
|
||||
foreach ( $avatar_sizes as $size ) {
|
||||
$avatar_properties[ $size ] = array(
|
||||
'description' => sprintf( __( /* translators: %d: avatar image size in pixels */ 'Avatar URL with image size of %d pixels.' ), $size ),
|
||||
/* translators: %d: avatar image size in pixels */
|
||||
'description' => sprintf( __( 'Avatar URL with image size of %d pixels.' ), $size ),
|
||||
'type' => 'string',
|
||||
'format' => 'uri',
|
||||
'context' => array( 'embed', 'view', 'edit' ),
|
||||
|
||||
Reference in New Issue
Block a user