Plugin Directory

Changeset 2164849 for health-check


Ignore:
Timestamp:
09/28/2019 12:01:09 PM (6 years ago)
Author:
Clorith
Message:

Quick-release of version 1.4.2 which fixes missing headers that somehow got forgotten in the mix

Location:
health-check
Files:
41 added
3 edited

Legend:

Unmodified
Added
Removed
  • health-check/trunk/health-check.php

    r2164837 r2164849  
    1010 * Description: Checks the health of your WordPress install.
    1111 * Author: The WordPress.org community
    12  * Version: 1.4.1
     12 * Version: 1.4.2
    1313 * Author URI: https://wordpress.org/plugins/health-check/
    1414 * Text Domain: health-check
     
    3636
    3737// Set the plugin version.
    38 define( 'HEALTH_CHECK_PLUGIN_VERSION', '1.4.1' );
     38define( 'HEALTH_CHECK_PLUGIN_VERSION', '1.4.2' );
    3939
    4040// Set the plugin file.
  • health-check/trunk/includes/class-health-check-debug-data.php

    r2164837 r2164849  
    702702            'debug' => $imagick_loaded,
    703703        );
     704
     705        $cookies = wp_unslash( $_COOKIE );
     706        $timeout = 10;
     707        $headers = array(
     708            'Cache-Control' => 'no-cache',
     709            'X-WP-Nonce'    => wp_create_nonce( 'wp_rest' ),
     710        );
     711        if ( isset( $_SERVER['PHP_AUTH_USER'] ) && isset( $_SERVER['PHP_AUTH_PW'] ) ) {
     712            $headers['Authorization'] = 'Basic ' . base64_encode( wp_unslash( $_SERVER['PHP_AUTH_USER'] ) . ':' . wp_unslash( $_SERVER['PHP_AUTH_PW'] ) );
     713        }
    704714
    705715        $server_request = wp_remote_get( site_url(), compact( 'cookies', 'headers', 'timeout' ) );
  • health-check/trunk/readme.txt

    r2164837 r2164849  
    55Requires PHP: 5.2
    66Tested up to: 5.2
    7 Stable tag: 1.4.1
     7Stable tag: 1.4.2
    88License: GPLv2
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    5050== Changelog ==
    5151
     52= v1.4.2 =
     53* Fix missing headers for a loopback request in the debug section
     54
    5255= v1.4.1 =
    5356* Fixed SQL version checks for various MariaDB installs.
Note: See TracChangeset for help on using the changeset viewer.