diff --git wp-includes/rest-api/class-wp-rest-server.php wp-includes/rest-api/class-wp-rest-server.php
index dad4070..5a0580e 100644
|
|
class WP_REST_Server { |
848 | 848 | * Allow plugins to override dispatching the request. |
849 | 849 | * |
850 | 850 | * @since 4.4.0 |
| 851 | * @since 4.5.0 $route and $handler parameters added. |
851 | 852 | * |
852 | 853 | * @param bool $dispatch_result Dispatch result, will be used if not empty. |
853 | 854 | * @param WP_REST_Request $request Request used to generate the response. |
| 855 | * @param string $route Route matched for the request. |
| 856 | * @param array $handler Route handler used for the request. |
854 | 857 | */ |
855 | | $dispatch_result = apply_filters( 'rest_dispatch_request', null, $request ); |
| 858 | $dispatch_result = apply_filters( 'rest_dispatch_request', null, $request, $route, $handler ); |
856 | 859 | |
857 | 860 | // Allow plugins to halt the request via this filter. |
858 | 861 | if ( null !== $dispatch_result ) { |