Changeset 40843
- Timestamp:
- 05/25/2017 06:01:16 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api.php
r40782 r40843 336 336 $url = set_url_scheme( $url, 'https' ); 337 337 } 338 } 339 340 if ( is_admin() && force_ssl_admin() ) { 341 // In this situation the home URL may be http:, and `is_ssl()` may be 342 // false, but the admin is served over https: (one way or another), so 343 // REST API usage will be blocked by browsers unless it is also served 344 // over HTTPS. 345 $url = set_url_scheme( $url, 'https' ); 338 346 } 339 347
Note: See TracChangeset
for help on using the changeset viewer.