From 33b4f176cd672ccbd0a1199607773affc9814bcb Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 3 Jun 2020 11:41:31 +0000 Subject: [PATCH] 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 --- src/wp-admin/includes/file.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-admin/includes/file.php b/src/wp-admin/includes/file.php index 9a0f93bac4..cca39895ba 100644 --- a/src/wp-admin/includes/file.php +++ b/src/wp-admin/includes/file.php @@ -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 );