Changeset 8819
- Timestamp:
- 05/20/2019 11:52:28 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/wcorg-json-api.php
r5202 r8819 362 362 363 363 // Route v2 requests to Core handler 364 $request->query_vars['rest_route'] = $request->query_vars['json_route']; 365 unset( $request->query_vars['json_route'] ); 366 $request->matched_query = preg_replace( '#^json_route=(.+)$#', 'rest_route=$1', $request->matched_query ); 364 if ( isset( $request->query_vars['json_route'] ) ) { 365 $request->query_vars['rest_route'] = $request->query_vars['json_route']; 366 unset( $request->query_vars['json_route'] ); 367 $request->matched_query = preg_replace( '#^json_route=(.+)$#', 'rest_route=$1', $request->matched_query ); 368 } 367 369 368 370 return;
Note: See TracChangeset
for help on using the changeset viewer.