- Timestamp:
- 11/29/2022 03:49:49 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/rest-api/rest-users-controller.php
r54090 r54891 975 975 wp_set_current_user( self::$user ); 976 976 977 $request = new WP_REST_Request ;977 $request = new WP_REST_Request(); 978 978 $request->set_param( 'context', 'edit' ); 979 979 $user = get_user_by( 'id', get_current_user_id() ); … … 985 985 wp_set_current_user( self::$user ); 986 986 987 $request = new WP_REST_Request ;987 $request = new WP_REST_Request(); 988 988 $request->set_param( 'context', 'edit' ); 989 989 $request->set_param( '_fields', 'id,name' );
Note: See TracChangeset
for help on using the changeset viewer.