From 9ae30a3725a88da78f80142323fc1d479d4e360f Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 15 Nov 2016 13:06:11 +0000 Subject: [PATCH] REST API: After [39238] and [39239], move the remaining translator comments to preceding line. See #38791. git-svn-id: https://develop.svn.wordpress.org/trunk@39245 602fd350-edb4-49c9-b593-d223f7449a82 --- .../rest-api/fields/class-wp-rest-meta-fields.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/wp-includes/rest-api/fields/class-wp-rest-meta-fields.php b/src/wp-includes/rest-api/fields/class-wp-rest-meta-fields.php index 414f1bf2e7..a0b3ca8fb6 100644 --- a/src/wp-includes/rest-api/fields/class-wp-rest-meta-fields.php +++ b/src/wp-includes/rest-api/fields/class-wp-rest-meta-fields.php @@ -176,7 +176,8 @@ abstract class WP_REST_Meta_Fields { if ( ! current_user_can( "delete_{$meta_type}_meta", $object_id, $name ) ) { return new WP_Error( 'rest_cannot_delete', - sprintf( __( /* translators: %s: custom field key */ 'You do not have permission to edit the %s custom field.' ), $name ), + /* translators: %s: custom field key */ + sprintf( __( 'You do not have permission to edit the %s custom field.' ), $name ), array( 'key' => $name, 'status' => rest_authorization_required_code() ) ); } @@ -210,7 +211,8 @@ abstract class WP_REST_Meta_Fields { if ( ! current_user_can( "edit_{$meta_type}_meta", $object_id, $name ) ) { return new WP_Error( 'rest_cannot_update', - sprintf( __( /* translators: %s: custom field key */ 'You do not have permission to edit the %s custom field.' ), $name ), + /* translators: %s: custom field key */ + sprintf( __( 'You do not have permission to edit the %s custom field.' ), $name ), array( 'key' => $name, 'status' => rest_authorization_required_code() ) ); } @@ -280,7 +282,8 @@ abstract class WP_REST_Meta_Fields { if ( ! current_user_can( "edit_{$meta_type}_meta", $object_id, $name ) ) { return new WP_Error( 'rest_cannot_update', - sprintf( __( /* translators: %s: custom field key */ 'You do not have permission to edit the %s custom field.' ), $name ), + /* translators: %s: custom field key */ + sprintf( __( 'You do not have permission to edit the %s custom field.' ), $name ), array( 'key' => $name, 'status' => rest_authorization_required_code() ) ); }