From f03eef071ef4ededdaf48abc931dcd1df51db6ce Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Sun, 22 May 2016 18:08:29 +0000 Subject: [PATCH] Docs: Standardize hook docs in wp-includes/rest-api/* to use third-person singular verbs per the inline documentation standards for PHP. See #36913. Built from https://develop.svn.wordpress.org/trunk@37490 git-svn-id: http://core.svn.wordpress.org/trunk@37458 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- .../rest-api/class-wp-rest-request.php | 4 ++-- .../rest-api/class-wp-rest-response.php | 2 +- wp-includes/rest-api/class-wp-rest-server.php | 24 +++++++++---------- wp-includes/version.php | 2 +- 4 files changed, 16 insertions(+), 16 deletions(-) diff --git a/wp-includes/rest-api/class-wp-rest-request.php b/wp-includes/rest-api/class-wp-rest-request.php index 34fc5be6bf..a0d711d7fb 100644 --- a/wp-includes/rest-api/class-wp-rest-request.php +++ b/wp-includes/rest-api/class-wp-rest-request.php @@ -373,7 +373,7 @@ class WP_REST_Request implements ArrayAccess { $order[] = 'defaults'; /** - * Filter the parameter order. + * Filters the parameter order. * * The order affects which parameters are checked when using get_param() and family. * This acts similarly to PHP's `request_order` setting. @@ -970,7 +970,7 @@ class WP_REST_Request implements ArrayAccess { } /** - * Filter the request generated from a URL. + * Filters the request generated from a URL. * * @since 4.5.0 * diff --git a/wp-includes/rest-api/class-wp-rest-response.php b/wp-includes/rest-api/class-wp-rest-response.php index 2c2a2825e0..c957fb2ab7 100644 --- a/wp-includes/rest-api/class-wp-rest-response.php +++ b/wp-includes/rest-api/class-wp-rest-response.php @@ -275,7 +275,7 @@ class WP_REST_Response extends WP_HTTP_Response { ); /** - * Filter extra CURIEs available on API responses. + * Filters extra CURIEs available on API responses. * * CURIEs allow a shortened version of URI relations. This allows a more * usable form for custom relations than using the full URI. These work diff --git a/wp-includes/rest-api/class-wp-rest-server.php b/wp-includes/rest-api/class-wp-rest-server.php index ebf58de2bb..43644b0158 100644 --- a/wp-includes/rest-api/class-wp-rest-server.php +++ b/wp-includes/rest-api/class-wp-rest-server.php @@ -251,7 +251,7 @@ class WP_REST_Server { } /** - * Filter whether the REST API is enabled. + * Filters whether the REST API is enabled. * * @since 4.4.0 * @@ -260,7 +260,7 @@ class WP_REST_Server { $enabled = apply_filters( 'rest_enabled', true ); /** - * Filter whether jsonp is enabled. + * Filters whether jsonp is enabled. * * @since 4.4.0 * @@ -335,7 +335,7 @@ class WP_REST_Server { } /** - * Filter the API response. + * Filters the API response. * * Allows modification of the response before returning. * @@ -361,7 +361,7 @@ class WP_REST_Server { $this->set_status( $code ); /** - * Filter whether the request has already been served. + * Filters whether the request has already been served. * * Allow sending the request manually - by returning true, the API result * will not be sent to the client. @@ -619,7 +619,7 @@ class WP_REST_Server { ); /** - * Filter the enveloped form of a response. + * Filters the enveloped form of a response. * * @since 4.4.0 * @@ -699,7 +699,7 @@ class WP_REST_Server { public function get_routes() { /** - * Filter the array of available endpoints. + * Filters the array of available endpoints. * * @since 4.4.0 * @@ -801,7 +801,7 @@ class WP_REST_Server { */ public function dispatch( $request ) { /** - * Filter the pre-calculated result of a REST dispatch request. + * Filters the pre-calculated result of a REST dispatch request. * * Allow hijacking the request before dispatching by returning a non-empty. The returned value * will be used to serve the request instead. @@ -886,7 +886,7 @@ class WP_REST_Server { if ( ! is_wp_error( $response ) ) { /** - * Filter the REST dispatch request result. + * Filters the REST dispatch request result. * * Allow plugins to override dispatching the request. * @@ -982,7 +982,7 @@ class WP_REST_Server { $response->add_link( 'help', 'http://v2.wp-api.org/' ); /** - * Filter the API root index data. + * Filters the API root index data. * * This contains the data describing the API. This includes information * about supported authentication schemes, supported namespaces, routes @@ -1025,7 +1025,7 @@ class WP_REST_Server { $response->add_link( 'up', rest_url( '/' ) ); /** - * Filter the namespace index data. + * Filters the namespace index data. * * This typically is just the route data for the namespace, but you can * add any data you'd like here. @@ -1059,7 +1059,7 @@ class WP_REST_Server { } /** - * Filter the REST endpoint data. + * Filters the REST endpoint data. * * @since 4.4.0 * @@ -1069,7 +1069,7 @@ class WP_REST_Server { } /** - * Filter the publicly-visible data for routes. + * Filters the publicly-visible data for routes. * * This data is exposed on indexes and can be used by clients or * developers to investigate the site and find out how to use it. It diff --git a/wp-includes/version.php b/wp-includes/version.php index a1d661210f..4ea2a82960 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.6-alpha-37489'; +$wp_version = '4.6-alpha-37490'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.