REST API: remove unnecessary variable assignments in rest_handle_options_request().

See #37771.

Built from https://develop.svn.wordpress.org/trunk@38310


git-svn-id: http://core.svn.wordpress.org/trunk@38251 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Scott Taylor 2016-08-22 20:56:28 +00:00
parent a017516291
commit 778d794e4f
2 changed files with 2 additions and 4 deletions

View File

@ -421,10 +421,8 @@ function rest_handle_options_request( $response, $handler, $request ) {
$response = new WP_REST_Response();
$data = array();
$accept = array();
foreach ( $handler->get_routes() as $route => $endpoints ) {
$match = preg_match( '@^' . $route . '$@i', $request->get_route(), $args );
$match = preg_match( '@^' . $route . '$@i', $request->get_route() );
if ( ! $match ) {
continue;

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.7-alpha-38309';
$wp_version = '4.7-alpha-38310';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.