diff --git a/wp-includes/rest-api/class-wp-rest-server.php b/wp-includes/rest-api/class-wp-rest-server.php index 98f174e9d5..5672cd39dd 100644 --- a/wp-includes/rest-api/class-wp-rest-server.php +++ b/wp-includes/rest-api/class-wp-rest-server.php @@ -874,11 +874,14 @@ class WP_REST_Server { * Allow plugins to override dispatching the request. * * @since 4.4.0 + * @since 4.5.0 $route and $handler parameters added. * * @param bool $dispatch_result Dispatch result, will be used if not empty. * @param WP_REST_Request $request Request used to generate the response. + * @param string $route Route matched for the request. + * @param array $handler Route handler used for the request. */ - $dispatch_result = apply_filters( 'rest_dispatch_request', null, $request ); + $dispatch_result = apply_filters( 'rest_dispatch_request', null, $request, $route, $handler ); // Allow plugins to halt the request via this filter. if ( null !== $dispatch_result ) { diff --git a/wp-includes/version.php b/wp-includes/version.php index b34e1bb246..22d784ce97 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.5-alpha-36533'; +$wp_version = '4.5-alpha-36534'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.