From b73cb62cca9103342f07c9b560be4f510599df60 Mon Sep 17 00:00:00 2001 From: Jorge Costa Date: Fri, 26 Jan 2024 18:11:52 +0000 Subject: [PATCH] Remove gutenberg context. --- .../endpoints/class-wp-rest-templates-controller.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php b/src/wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php index a4b03756f16ad..ab2fdce15b719 100644 --- a/src/wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php +++ b/src/wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php @@ -829,7 +829,7 @@ private static function get_wp_templates_author_text_field( $template_object ) { case 'user': $author = get_user_by( 'id', $template_object->author ); if ( ! $author ) { - return __( 'Unknown author', 'gutenberg' ); + return __( 'Unknown author' ); } return $author->get( 'display_name' ); } @@ -1061,12 +1061,12 @@ public function get_item_schema() { ), 'author_text' => array( 'type' => 'string', - 'description' => __( 'Human readable text for the author.', 'gutenberg' ), + 'description' => __( 'Human readable text for the author.' ), 'readonly' => true, 'context' => array( 'view', 'edit', 'embed' ), ), 'original_source' => array( - 'description' => __( 'Where the template originally comes from e.g. \'theme\'', 'gutenberg' ), + 'description' => __( 'Where the template originally comes from e.g. \'theme\'' ), 'type' => 'string', 'readonly' => true, 'context' => array( 'view', 'edit', 'embed' ),