- Timestamp:
- 09/03/2019 12:39:13 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php
r45926 r45932 160 160 return new WP_Error( 161 161 'rest_forbidden_param', 162 /* translators: %s: list of forbidden parameters*/162 /* translators: %s: List of forbidden parameters. */ 163 163 sprintf( __( 'Query parameter not permitted: %s' ), implode( ', ', $forbidden_params ) ), 164 164 array( 'status' => rest_authorization_required_code() ) … … 431 431 return new WP_Error( 432 432 'rest_comment_invalid_author', 433 /* translators: %s: request parameter*/433 /* translators: %s: Request parameter. */ 434 434 sprintf( __( "Sorry, you are not allowed to edit '%s' for comments." ), 'author' ), 435 435 array( 'status' => rest_authorization_required_code() ) … … 441 441 return new WP_Error( 442 442 'rest_comment_invalid_author_ip', 443 /* translators: %s: request parameter*/443 /* translators: %s: Request parameter. */ 444 444 sprintf( __( "Sorry, you are not allowed to edit '%s' for comments." ), 'author_ip' ), 445 445 array( 'status' => rest_authorization_required_code() ) … … 451 451 return new WP_Error( 452 452 'rest_comment_invalid_status', 453 /* translators: %s: request parameter*/453 /* translators: %s: Request parameter. */ 454 454 sprintf( __( "Sorry, you are not allowed to edit '%s' for comments." ), 'status' ), 455 455 array( 'status' => rest_authorization_required_code() ) … … 1355 1355 foreach ( $avatar_sizes as $size ) { 1356 1356 $avatar_properties[ $size ] = array( 1357 /* translators: %d: avatar image size in pixels*/1357 /* translators: %d: Avatar image size in pixels. */ 1358 1358 'description' => sprintf( __( 'Avatar URL with image size of %d pixels.' ), $size ), 1359 1359 'type' => 'string',
Note: See TracChangeset
for help on using the changeset viewer.