WordPress.org

Make WordPress Core

Ticket #47957: 47957.diff

File 47957.diff, 886 bytes (added by ocean90, 5 months ago)
  • src/wp-admin/includes/class-wp-site-health.php

     
    20002000                $headers = array(
    20012001                        'Cache-Control' => 'no-cache',
    20022002                );
     2003                /** This filter is documented in wp-includes/class-wp-http-streams.php */
     2004                $sslverify = apply_filters( 'https_local_ssl_verify', false );
    20032005
    20042006                // Include Basic auth in loopback requests.
    20052007                if ( isset( $_SERVER['PHP_AUTH_USER'] ) && isset( $_SERVER['PHP_AUTH_PW'] ) ) {
     
    20082010
    20092011                $url = admin_url();
    20102012
    2011                 $r = wp_remote_get( $url, compact( 'cookies', 'headers', 'timeout' ) );
     2013                $r = wp_remote_get( $url, compact( 'cookies', 'headers', 'timeout', 'sslverify' ) );
    20122014
    20132015                if ( is_wp_error( $r ) ) {
    20142016                        return (object) array(