Changeset 35514
- Timestamp:
- 11/04/2015 09:22:21 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/class-wp-rest-server.php
r35353 r35514 764 764 765 765 foreach ( $this->get_routes() as $route => $handlers ) { 766 $match = preg_match( '@^' . $route . '$@i', $path, $args ); 767 768 if ( ! $match ) { 769 continue; 770 } 771 766 772 foreach ( $handlers as $handler ) { 767 773 $callback = $handler['callback']; … … 769 775 770 776 if ( empty( $handler['methods'][ $method ] ) ) { 771 continue;772 }773 774 $match = preg_match( '@^' . $route . '$@i', $path, $args );775 776 if ( ! $match ) {777 777 continue; 778 778 }
Note: See TracChangeset
for help on using the changeset viewer.