Version Description
Download this release
Release Info
Developer | Clorith |
Plugin | Health Check |
Version | 1.2.5 |
Comparing to | |
See all releases |
Code changes from version 1.2.4 to 1.2.5
- health-check.php +2 -2
- includes/class-health-check-site-status.php +1 -0
- includes/class-health-check.php +12 -12
- readme.txt +6 -1
health-check.php
CHANGED
@@ -9,7 +9,7 @@
|
|
9 |
* Plugin URI: https://wordpress.org/plugins/health-check/
|
10 |
* Description: Checks the health of your WordPress install.
|
11 |
* Author: The WordPress.org community
|
12 |
-
* Version: 1.2.
|
13 |
* Author URI: https://wordpress.org/plugins/health-check/
|
14 |
* Text Domain: health-check
|
15 |
*/
|
@@ -35,7 +35,7 @@ define( 'HEALTH_CHECK_MYSQL_MIN_VERSION', '5.0' );
|
|
35 |
define( 'HEALTH_CHECK_MYSQL_REC_VERSION', '5.6' );
|
36 |
|
37 |
// Set the plugin version.
|
38 |
-
define( 'HEALTH_CHECK_PLUGIN_VERSION', '1.2.
|
39 |
|
40 |
// Set the absolute path for the plugin.
|
41 |
define( 'HEALTH_CHECK_PLUGIN_DIRECTORY', plugin_dir_path( __FILE__ ) );
|
9 |
* Plugin URI: https://wordpress.org/plugins/health-check/
|
10 |
* Description: Checks the health of your WordPress install.
|
11 |
* Author: The WordPress.org community
|
12 |
+
* Version: 1.2.5
|
13 |
* Author URI: https://wordpress.org/plugins/health-check/
|
14 |
* Text Domain: health-check
|
15 |
*/
|
35 |
define( 'HEALTH_CHECK_MYSQL_REC_VERSION', '5.6' );
|
36 |
|
37 |
// Set the plugin version.
|
38 |
+
define( 'HEALTH_CHECK_PLUGIN_VERSION', '1.2.5' );
|
39 |
|
40 |
// Set the absolute path for the plugin.
|
41 |
define( 'HEALTH_CHECK_PLUGIN_DIRECTORY', plugin_dir_path( __FILE__ ) );
|
includes/class-health-check-site-status.php
CHANGED
@@ -918,6 +918,7 @@ class Health_Check_Site_Status {
|
|
918 |
$timeout = 10;
|
919 |
$headers = array(
|
920 |
'Cache-Control' => 'no-cache',
|
|
|
921 |
);
|
922 |
|
923 |
// Include Basic auth in loopback requests.
|
918 |
$timeout = 10;
|
919 |
$headers = array(
|
920 |
'Cache-Control' => 'no-cache',
|
921 |
+
'X-WP-Nonce' => wp_create_nonce( 'wp_rest' ),
|
922 |
);
|
923 |
|
924 |
// Include Basic auth in loopback requests.
|
includes/class-health-check.php
CHANGED
@@ -202,16 +202,13 @@ class Health_Check {
|
|
202 |
* @return void
|
203 |
*/
|
204 |
public function enqueues() {
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
-
if ( ! Health_Check_Troubleshoot::has_seen_warning() ) {
|
213 |
-
wp_enqueue_style( 'health-check', HEALTH_CHECK_PLUGIN_URL . '/assets/css/health-check.css', array(), HEALTH_CHECK_PLUGIN_VERSION );
|
214 |
-
}
|
215 |
return;
|
216 |
}
|
217 |
|
@@ -299,11 +296,14 @@ class Health_Check {
|
|
299 |
$plugin_data['slug'] = $plugin_file;
|
300 |
}
|
301 |
|
|
|
|
|
|
|
302 |
$actions['troubleshoot'] = sprintf(
|
303 |
'<a href="%s">%s</a>',
|
304 |
esc_url( add_query_arg( array(
|
305 |
-
'health-check-troubleshoot-plugin' =>
|
306 |
-
'_wpnonce' => wp_create_nonce( 'health-check-troubleshoot-plugin-' . $
|
307 |
), admin_url( 'plugins.php' ) ) ),
|
308 |
esc_html__( 'Troubleshoot', 'health-check' )
|
309 |
);
|
202 |
* @return void
|
203 |
*/
|
204 |
public function enqueues() {
|
205 |
+
/*
|
206 |
+
* Don't enqueue anything unless we're on the health check page
|
207 |
+
*
|
208 |
+
* Special consideration, if warnings are not dismissed we need to display
|
209 |
+
* our modal, and thus require our styles, in other locations, before bailing.
|
210 |
+
*/
|
211 |
+
if ( ( ! isset( $_GET['page'] ) || 'health-check' !== $_GET['page'] ) && Health_Check_Troubleshoot::has_seen_warning() ) {
|
|
|
|
|
|
|
212 |
return;
|
213 |
}
|
214 |
|
296 |
$plugin_data['slug'] = $plugin_file;
|
297 |
}
|
298 |
|
299 |
+
// If a slug isn't present, use the plugin's name
|
300 |
+
$plugin_name = ( isset( $plugin_data['slug'] ) ? $plugin_data['slug'] : sanitize_title( $plugin_data['Name'] ) );
|
301 |
+
|
302 |
$actions['troubleshoot'] = sprintf(
|
303 |
'<a href="%s">%s</a>',
|
304 |
esc_url( add_query_arg( array(
|
305 |
+
'health-check-troubleshoot-plugin' => $plugin_name,
|
306 |
+
'_wpnonce' => wp_create_nonce( 'health-check-troubleshoot-plugin-' . $plugin_name ),
|
307 |
), admin_url( 'plugins.php' ) ) ),
|
308 |
esc_html__( 'Troubleshoot', 'health-check' )
|
309 |
);
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Tags: health check
|
|
3 |
Contributors: wordpressdotorg, westi, pento, Clorith
|
4 |
Requires at least: 4.0
|
5 |
Tested up to: 5.0
|
6 |
-
Stable tag: 1.2.
|
7 |
License: GPLv2
|
8 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -39,6 +39,11 @@ Are you unfamiliar with how to clear your cookies? No worries, you may also clos
|
|
39 |
|
40 |
== Changelog ==
|
41 |
|
|
|
|
|
|
|
|
|
|
|
42 |
= v1.2.4 =
|
43 |
* Security: Prevent arbitrary file viewing through the integrity file actions. Independently reported by Julien Legras of [Synacktiv](https://synacktiv.com) and siliconforks.
|
44 |
* Security: Site status was available to any user with a subscriber role or higher on a site. Reported by Julien Legras of [Synacktiv](https://synacktiv.com).
|
3 |
Contributors: wordpressdotorg, westi, pento, Clorith
|
4 |
Requires at least: 4.0
|
5 |
Tested up to: 5.0
|
6 |
+
Stable tag: 1.2.5
|
7 |
License: GPLv2
|
8 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
39 |
|
40 |
== Changelog ==
|
41 |
|
42 |
+
= v1.2.5=
|
43 |
+
* Fix: Ensure the REST API status test runs as intended.
|
44 |
+
* Fix: Remove warning on plugin screens when premium plugins are used.
|
45 |
+
* Fix: Backup reminder would not remain dismissed in all scenarios after the recent update.
|
46 |
+
|
47 |
= v1.2.4 =
|
48 |
* Security: Prevent arbitrary file viewing through the integrity file actions. Independently reported by Julien Legras of [Synacktiv](https://synacktiv.com) and siliconforks.
|
49 |
* Security: Site status was available to any user with a subscriber role or higher on a site. Reported by Julien Legras of [Synacktiv](https://synacktiv.com).
|