Changeset 39923 for trunk/src/wp-includes/rest-api.php
- Timestamp:
- 01/17/2017 05:39:15 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api.php
r39896 r39923 257 257 258 258 // Fire off the request. 259 $server->serve_request( untrailingslashit( $GLOBALS['wp']->query_vars['rest_route'] ) ); 259 $route = untrailingslashit( $GLOBALS['wp']->query_vars['rest_route'] ); 260 if ( empty( $route ) ) { 261 $route = '/'; 262 } 263 $server->serve_request( $route ); 260 264 261 265 // We're done.
Note: See TracChangeset
for help on using the changeset viewer.