From 9b0d0af28bf508969d505a6883906e7cefc47a33 Mon Sep 17 00:00:00 2001 From: Jorge Costa Date: Mon, 29 Jan 2024 12:32:26 +0000 Subject: [PATCH] Coding Standards: Remove unnecessary access and internal annotations from two functions in WP_REST_Templates_Controller. This commit removes unnecessary access and internal annotations from two functions that are private and as such don't require the annotation. It also adds the since annotation with the 6.5 release given that the annotation may be useful. Props swissspidy. See #60358. git-svn-id: https://develop.svn.wordpress.org/trunk@57374 602fd350-edb4-49c9-b593-d223f7449a82 --- .../endpoints/class-wp-rest-templates-controller.php | 6 ++---- 1 file changed, 2 insertions(+), 4 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 ab2fdce15b719..1549fd4295561 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 @@ -759,8 +759,7 @@ public function prepare_item_for_response( $item, $request ) { /** * Returns the source from where the template originally comes from. * - * @access private - * @internal + * @since 6.5.0 * * @param WP_Block_Template $template_object Template instance. * @return string Original source of the template one of theme, plugin, site, or user. @@ -808,8 +807,7 @@ private static function get_wp_templates_original_source_field( $template_object /** * Returns a human readable text for the author of the template. * - * @access private - * @internal + * @since 6.5.0 * * @param WP_Block_Template $template_object Template instance. * @return string Human readable text for the author.