Make WordPress Core

Changeset 38310


Ignore:
Timestamp:
08/22/2016 08:55:29 PM (10 years ago)
Author:
wonderboymusic
Message:

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

See #37771.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/rest-api.php

    r37905 r38310  
    422422        $data = array();
    423423
    424         $accept = array();
    425 
    426424        foreach ( $handler->get_routes() as $route => $endpoints ) {
    427                 $match = preg_match( '@^' . $route . '$@i', $request->get_route(), $args );
     425                $match = preg_match( '@^' . $route . '$@i', $request->get_route() );
    428426
    429427                if ( ! $match ) {
Note: See TracChangeset for help on using the changeset viewer.