WordPress.org

Make WordPress Core


Ignore:
Timestamp:
06/03/2020 11:41:31 AM (16 months ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/file.php

    r47848 r47896  
    587587            $url                    = home_url( '/' );
    588588            $url                    = add_query_arg( $scrape_params, $url );
    589             $r                      = wp_remote_get( $url, compact( 'cookies', 'headers', 'timeout' ) );
     589            $r                      = wp_remote_get( $url, compact( 'cookies', 'headers', 'timeout', 'sslverify' ) );
    590590            $body                   = wp_remote_retrieve_body( $r );
    591591            $scrape_result_position = strpos( $body, $needle_start );
Note: See TracChangeset for help on using the changeset viewer.