From 453bee15eede547b145c518fca2c620a50262968 Mon Sep 17 00:00:00 2001 From: Kelly Dwan Date: Mon, 24 May 2021 13:11:48 -0400 Subject: [PATCH] Clean up some documentation in API --- lib/class-wp-rest-pattern-directory-controller.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/class-wp-rest-pattern-directory-controller.php b/lib/class-wp-rest-pattern-directory-controller.php index 38e8695c60dce..6e336b12c64be 100644 --- a/lib/class-wp-rest-pattern-directory-controller.php +++ b/lib/class-wp-rest-pattern-directory-controller.php @@ -56,7 +56,7 @@ public function register_routes() { * * @return WP_Error|bool True if the request has permission, WP_Error object otherwise. */ - public function get_items_permissions_check( $request ) { // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable -- Method must match signature of parent class. + public function get_items_permissions_check( $request ) { if ( current_user_can( 'edit_posts' ) ) { return true; } @@ -158,7 +158,7 @@ public function get_items( $request ) { * * @return WP_REST_Response */ - public function prepare_item_for_response( $raw_pattern, $request ) { // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable -- Method must match signature of parent class. + public function prepare_item_for_response( $raw_pattern, $request ) { $prepared_pattern = array( 'id' => absint( $raw_pattern->id ), 'title' => sanitize_text_field( $raw_pattern->title->rendered ), @@ -269,7 +269,7 @@ public function get_item_schema() { /** * Retrieves the search params for the patterns collection. * - * @since 5.5.0 + * @since 5.8.0 * * @return array Collection parameters. */ @@ -298,7 +298,7 @@ public function get_collection_params() { /** * Filter collection parameters for the pattern directory controller. * - * @since 5.5.0 + * @since 5.8.0 * * @param array $query_params JSON Schema-formatted collection parameters. */