Changeset 37429
- Timestamp:
- 05/13/2016 05:10:52 AM (9 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-http.php
r37428 r37429 305 305 'useragent' => $r['user-agent'], 306 306 'blocking' => $r['blocking'], 307 'hooks' => new Requests_Hooks(), 307 308 ); 309 310 // Ensure redirects follow browser behaviour. 311 $options['hooks']->register( 'requests.before_redirect', array( get_class(), 'browser_redirect_compatibility' ) ); 308 312 309 313 if ( $r['stream'] ) { -
trunk/src/wp-includes/default-filters.php
r37428 r37429 207 207 add_filter( 'title_save_pre', 'trim' ); 208 208 209 add_filter( 'http_request_host_is_external', 'allowed_http_request_hosts', 10, 2 ); 210 add_action( 'requests-requests.before_redirect', array( 'WP_Http', 'browser_redirect_compatibility' ), 10, 5 ); 209 add_filter( 'http_request_host_is_external', 'allowed_http_request_hosts', 10, 2 ); 211 210 212 211 // REST API filters.
Note: See TracChangeset
for help on using the changeset viewer.