mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-22 15:31:42 +01:00
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:
parent
f6307ff5fc
commit
ae8ddcf935
@ -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;
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user