Make WordPress Core

Ticket #46814: 46814.patch

File 46814.patch, 844 bytes (added by Clorith, 6 years ago)
  • src/wp-admin/includes/class-wp-site-health-auto-updates.php

     
    106106
    107107                $test = wp_remote_get( $url, compact( 'cookies', 'headers', 'timeout' ) );
    108108
     109                if ( is_wp_error( $test ) ) {
     110                        return array(
     111                                'description' => sprintf(
     112                                        /* translators: %s: Name of the filter used. */
     113                                        __( 'A failure prevents us from confirming that the %s filter is available.' ),
     114                                        '<code>wp_version_check()</code>'
     115                                ),
     116                                'severity'    => 'warning',
     117                        );
     118                }
     119
    109120                $response = wp_remote_retrieve_body( $test );
    110121
    111122                if ( 'yes' !== $response ) {