REST API: Remove unused variable in `WP_REST_Server::match_request_to_handler()`.

Previously initialized in `WP_REST_Server::dispatch()`, the `$response` variable became unused when the logic was split into two new methods, `::match_request_to_handler()` and `::respond_to_request()`.

Follow-up to [34928], [48947].

Props upadalavipul, mukesh27.
Fixes #59420.
Built from https://develop.svn.wordpress.org/trunk@56645


git-svn-id: http://core.svn.wordpress.org/trunk@56157 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2023-09-21 12:19:17 +00:00
parent f6307ff5fc
commit ae8ddcf935
2 changed files with 1 additions and 2 deletions

View File

@ -1079,7 +1079,6 @@ class WP_REST_Server {
foreach ( $handlers as $handler ) {
$callback = $handler['callback'];
$response = null;
// Fallback to GET method if no HEAD method is registered.
$checked_method = $method;

View File

@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
$wp_version = '6.4-alpha-56644';
$wp_version = '6.4-alpha-56645';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.