Changeset 45590 for trunk/src/wp-includes/class-oembed.php
- Timestamp:
- 07/02/2019 11:41:16 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-oembed.php
r45386 r45590 441 441 // Fetch URL content 442 442 $request = wp_safe_remote_get( $url, $args ); 443 if ( $html = wp_remote_retrieve_body( $request ) ) { 443 $html = wp_remote_retrieve_body( $request ); 444 if ( $html ) { 444 445 445 446 /** … … 462 463 463 464 // Strip <body> 464 if ( $html_head_end = stripos( $html, '</head>' ) ) { 465 $html_head_end = stripos( $html, '</head>' ); 466 if ( $html_head_end ) { 465 467 $html = substr( $html, 0, $html_head_end ); 466 468 } … … 560 562 return new WP_Error( 'not-implemented' ); 561 563 } 562 if ( ! $body = wp_remote_retrieve_body( $response ) ) { 564 $body = wp_remote_retrieve_body( $response ); 565 if ( ! $body ) { 563 566 return false; 564 567 }
Note: See TracChangeset
for help on using the changeset viewer.