Changeset 51206
- Timestamp:
- 06/22/2021 09:20:44 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-pattern-directory-controller.php
r51093 r51206 84 84 */ 85 85 public function get_items( $request ) { 86 $query_args = array(); 86 /* 87 * Include an unmodified `$wp_version`, so the API can craft a response that's tailored to 88 * it. Some plugins modify the version in a misguided attempt to improve security by 89 * obscuring the version, which can cause invalid requests. 90 */ 91 require ABSPATH . WPINC . '/version.php'; 92 93 $query_args = array( 94 'locale' => get_user_locale(), 95 'wp-version' => $wp_version, 96 ); 97 87 98 $category_id = $request['category']; 88 99 $keyword_id = $request['keyword'];
Note: See TracChangeset
for help on using the changeset viewer.