Make WordPress Core

Changeset 46230


Ignore:
Timestamp:
09/21/2019 03:58:38 PM (5 years ago)
Author:
ocean90
Message:

File Editor: Don't verify SSL certificate when doing loopback requests for checking for fatal errors.

Props Clorith.
See #47957.

File:
1 edited

Legend:

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

    r46174 r46230  
    519519        );
    520520
     521        /** This filter is documented in wp-includes/class-wp-http-streams.php */
     522        $sslverify = apply_filters( 'https_local_ssl_verify', false );
     523
    521524        // Include Basic auth in loopback requests.
    522525        if ( isset( $_SERVER['PHP_AUTH_USER'] ) && isset( $_SERVER['PHP_AUTH_PW'] ) ) {
     
    548551        }
    549552        $url                    = add_query_arg( $scrape_params, $url );
    550         $r                      = wp_remote_get( $url, compact( 'cookies', 'headers', 'timeout' ) );
     553        $r                      = wp_remote_get( $url, compact( 'cookies', 'headers', 'timeout', 'sslverify' ) );
    551554        $body                   = wp_remote_retrieve_body( $r );
    552555        $scrape_result_position = strpos( $body, $needle_start );
Note: See TracChangeset for help on using the changeset viewer.