From 8ca07a43162e61b98e76df4f6653c6039b7c459c Mon Sep 17 00:00:00 2001 From: Daniel Richards Date: Thu, 25 Nov 2021 19:07:36 +0800 Subject: [PATCH] Add translation domains --- .../class-gutenberg-rest-templates-controller.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/compat/wordpress-5.9/class-gutenberg-rest-templates-controller.php b/lib/compat/wordpress-5.9/class-gutenberg-rest-templates-controller.php index 558c7068196d2..e35214bbca1ec 100644 --- a/lib/compat/wordpress-5.9/class-gutenberg-rest-templates-controller.php +++ b/lib/compat/wordpress-5.9/class-gutenberg-rest-templates-controller.php @@ -395,7 +395,7 @@ protected function prepare_item_for_database( $request ) { if ( ! $user_obj ) { return new WP_Error( 'rest_invalid_author', - __( 'Invalid author ID.' ), + __( 'Invalid author ID.', 'gutenberg' ), array( 'status' => 400 ) ); } @@ -607,7 +607,7 @@ public function get_item_schema() { 'readonly' => true, ), 'author' => array( - 'description' => __( 'The ID for the author of the template.' ), + 'description' => __( 'The ID for the author of the template.', 'gutenberg' ), 'type' => 'integer', 'context' => array( 'view', 'edit', 'embed' ), ),