Make WordPress Core


Ignore:
Timestamp:
11/15/2016 05:38:21 AM (8 years ago)
Author:
rmccue
Message:

REST API: Move translator comments to preceding line.

Inline translator comments break POT file generation.

Props dd32.
See #38791.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php

    r39238 r39239  
    975975
    976976            if ( ! isset( $wp_roles->role_objects[ $role ] ) ) {
    977                 return new WP_Error( 'rest_user_invalid_role', sprintf( __( /* translators: %s: role key */ 'The role %s does not exist.' ), $role ), array( 'status' => 400 ) );
     977                /* translators: %s: role key */
     978                return new WP_Error( 'rest_user_invalid_role', sprintf( __( 'The role %s does not exist.' ), $role ), array( 'status' => 400 ) );
    978979            }
    979980
     
    12071208            foreach ( $avatar_sizes as $size ) {
    12081209                $avatar_properties[ $size ] = array(
    1209                     'description' => sprintf( __( /* translators: %d: avatar image size in pixels */ 'Avatar URL with image size of %d pixels.' ), $size ),
     1210                    /* translators: %d: avatar image size in pixels */
     1211                    'description' => sprintf( __( 'Avatar URL with image size of %d pixels.' ), $size ),
    12101212                    'type'        => 'string',
    12111213                    'format'      => 'uri',
Note: See TracChangeset for help on using the changeset viewer.