File Editor: Don't verify SSL certificate when doing loopback requests for checking for fatal errors.
Previously, verification was disabled for the loopback request to the admin URL, but not to the home URL. Follow-up to [46230]. Props munyagu. Fixes #50309. See #47957. git-svn-id: https://develop.svn.wordpress.org/trunk@47896 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
3f0a45647e
commit
33b4f176cd
@ -586,7 +586,7 @@ function wp_edit_theme_plugin_file( $args ) {
|
|||||||
if ( true === $result ) {
|
if ( true === $result ) {
|
||||||
$url = home_url( '/' );
|
$url = home_url( '/' );
|
||||||
$url = add_query_arg( $scrape_params, $url );
|
$url = add_query_arg( $scrape_params, $url );
|
||||||
$r = wp_remote_get( $url, compact( 'cookies', 'headers', 'timeout' ) );
|
$r = wp_remote_get( $url, compact( 'cookies', 'headers', 'timeout', 'sslverify' ) );
|
||||||
$body = wp_remote_retrieve_body( $r );
|
$body = wp_remote_retrieve_body( $r );
|
||||||
$scrape_result_position = strpos( $body, $needle_start );
|
$scrape_result_position = strpos( $body, $needle_start );
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user