mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-03 20:24:26 +00:00
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:
@@ -586,7 +586,7 @@ function wp_edit_theme_plugin_file( $args ) {
|
||||
if ( true === $result ) {
|
||||
$url = home_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 );
|
||||
$scrape_result_position = strpos( $body, $needle_start );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user