Version Description
- Fix: sitehealth dismiss not working correctly, props @doffine
Download this release
Release Info
Developer | RogierLankhorst |
Plugin | Really Simple SSL |
Version | 4.0.3 |
Comparing to | |
See all releases |
Code changes from version 4.0.2 to 4.0.3
- class-site-health.php +39 -48
- readme.txt +4 -1
- rlrsssl-really-simple-ssl.php +1 -1
class-site-health.php
CHANGED
@@ -23,16 +23,22 @@ if (!class_exists("rsssl_site_health")) {
|
|
23 |
}
|
24 |
|
25 |
public function rsssl_health_check( $tests ) {
|
26 |
-
|
27 |
-
|
|
|
28 |
'label' => __( 'SSL Status Test' , 'really-simple-ssl'),
|
29 |
'test' => array($this, "health_test"),
|
30 |
);
|
31 |
-
|
32 |
-
|
33 |
-
'
|
34 |
-
|
35 |
-
|
|
|
|
|
|
|
|
|
|
|
36 |
return $tests;
|
37 |
}
|
38 |
|
@@ -42,43 +48,34 @@ if (!class_exists("rsssl_site_health")) {
|
|
42 |
*/
|
43 |
|
44 |
public function headers_test() {
|
45 |
-
$result = array(
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
50 |
|
51 |
-
if
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
)
|
63 |
-
'actions' => '',
|
64 |
-
'test' => 'headers_test',
|
65 |
);
|
66 |
-
|
67 |
-
//returns empty for sites without .htaccess, or if all headers are already in use
|
68 |
-
$recommended_headers = RSSSL()->really_simple_ssl->get_recommended_security_headers();
|
69 |
-
if (!empty($recommended_headers)) {
|
70 |
-
$style = '<style>.rsssl-sec-headers-list li {list-style-type:disc;margin-left:20px;}</style>';
|
71 |
-
$list = '<ul class="rsssl-sec-headers-list"><li>'.implode('</li><li>', $recommended_headers ).'</li></ul>';
|
72 |
-
$result['status'] = 'recommended';
|
73 |
-
$result['label'] = __( 'Recommended security headers' , 'really-simple-ssl' );
|
74 |
-
$result['description'] = sprintf( '<p>%s</p>', __( 'Your .htaccess file does not contain all recommended security headers.', 'really-simple-ssl' ).$style.$list);
|
75 |
-
$result['actions'] = sprintf(
|
76 |
-
'<p><a href="%s" target="_blank">%s</a></p>',
|
77 |
-
'https://really-simple-ssl.com/site-health-recommended-security-headers/',
|
78 |
-
__( 'Learn more about security headers', 'really-simple-ssl' )
|
79 |
-
);
|
80 |
-
}
|
81 |
-
|
82 |
}
|
83 |
|
84 |
return $result;
|
@@ -89,12 +86,6 @@ if (!class_exists("rsssl_site_health")) {
|
|
89 |
* @return array
|
90 |
*/
|
91 |
public function health_test() {
|
92 |
-
$result = array();
|
93 |
-
|
94 |
-
if (RSSSL()->really_simple_ssl->dismiss_all_notices) {
|
95 |
-
return $result;
|
96 |
-
}
|
97 |
-
|
98 |
if (is_multisite() && is_super_admin() ){
|
99 |
$url = add_query_arg(array('page' => 'really-simple-ssl'), network_admin_url('settings.php'));
|
100 |
} else {
|
23 |
}
|
24 |
|
25 |
public function rsssl_health_check( $tests ) {
|
26 |
+
if ( !RSSSL()->really_simple_ssl->dismiss_all_notices ) {
|
27 |
+
|
28 |
+
$tests['direct']['rsssl-health'] = array(
|
29 |
'label' => __( 'SSL Status Test' , 'really-simple-ssl'),
|
30 |
'test' => array($this, "health_test"),
|
31 |
);
|
32 |
+
|
33 |
+
if ( RSSSL()->really_simple_ssl->ssl_enabled && RSSSL()->rsssl_server->uses_htaccess() && file_exists( RSSSL()->really_simple_ssl->htaccess_file() ) ) {
|
34 |
+
$tests['direct']['rsssl-headers'] = array(
|
35 |
+
'label' => __( 'Security Headers Test' , 'really-simple-ssl' ),
|
36 |
+
'test' => array($this, "headers_test"),
|
37 |
+
);
|
38 |
+
}
|
39 |
+
|
40 |
+
}
|
41 |
+
|
42 |
return $tests;
|
43 |
}
|
44 |
|
48 |
*/
|
49 |
|
50 |
public function headers_test() {
|
51 |
+
$result = array(
|
52 |
+
'label' => __( 'Recommended security headers installed', 'really-simple-ssl' ),
|
53 |
+
'status' => 'good',
|
54 |
+
'badge' => array(
|
55 |
+
'label' => 'SSL',
|
56 |
+
'color' => 'blue',
|
57 |
+
),
|
58 |
+
'description' => sprintf(
|
59 |
+
'<p>%s</p>',
|
60 |
+
__( 'The recommended security headers are detected on your site.', 'really-simple-ssl' )
|
61 |
+
),
|
62 |
+
'actions' => '',
|
63 |
+
'test' => 'headers_test',
|
64 |
+
);
|
65 |
|
66 |
+
//returns empty for sites without .htaccess, or if all headers are already in use
|
67 |
+
$recommended_headers = RSSSL()->really_simple_ssl->get_recommended_security_headers();
|
68 |
+
if (!empty($recommended_headers)) {
|
69 |
+
$style = '<style>.rsssl-sec-headers-list li {list-style-type:disc;margin-left:20px;}</style>';
|
70 |
+
$list = '<ul class="rsssl-sec-headers-list"><li>'.implode('</li><li>', $recommended_headers ).'</li></ul>';
|
71 |
+
$result['status'] = 'recommended';
|
72 |
+
$result['label'] = __( 'Not all recommended security headers are installed' , 'really-simple-ssl' );
|
73 |
+
$result['description'] = sprintf( '<p>%s</p>', __( 'Your .htaccess file does not contain all recommended security headers.', 'really-simple-ssl' ).$style.$list);
|
74 |
+
$result['actions'] = sprintf(
|
75 |
+
'<p><a href="%s" target="_blank">%s</a></p>',
|
76 |
+
'https://really-simple-ssl.com/site-health-recommended-security-headers/',
|
77 |
+
__( 'Learn more about security headers', 'really-simple-ssl' )
|
|
|
|
|
78 |
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
79 |
}
|
80 |
|
81 |
return $result;
|
86 |
* @return array
|
87 |
*/
|
88 |
public function health_test() {
|
|
|
|
|
|
|
|
|
|
|
|
|
89 |
if (is_multisite() && is_super_admin() ){
|
90 |
$url = add_query_arg(array('page' => 'really-simple-ssl'), network_admin_url('settings.php'));
|
91 |
} else {
|
readme.txt
CHANGED
@@ -6,7 +6,7 @@ Requires at least: 4.6
|
|
6 |
License: GPL2
|
7 |
Tested up to: 5.6
|
8 |
Requires PHP: 5.4
|
9 |
-
Stable tag: 4.0.
|
10 |
|
11 |
No setup required! You only need an SSL certificate, and this plugin will do the rest.
|
12 |
|
@@ -82,6 +82,9 @@ If you are experiencing redirect loops on your site, try these [instructions](ht
|
|
82 |
Yes. There is a dedicated network settings page where you can switch between network activated SSL and per page SSL. In the dedicated pro for multisite plugin, you can override all site settings for SSL on the network level, and can activate and deactivate SSL in the network menu for each site.
|
83 |
|
84 |
== Changelog ==
|
|
|
|
|
|
|
85 |
= 4.0.2 =
|
86 |
* Fix: not translatable string, props @kebbet
|
87 |
* Improvement: clear admin notices cache when SSL activated or reloaded over https
|
6 |
License: GPL2
|
7 |
Tested up to: 5.6
|
8 |
Requires PHP: 5.4
|
9 |
+
Stable tag: 4.0.3
|
10 |
|
11 |
No setup required! You only need an SSL certificate, and this plugin will do the rest.
|
12 |
|
82 |
Yes. There is a dedicated network settings page where you can switch between network activated SSL and per page SSL. In the dedicated pro for multisite plugin, you can override all site settings for SSL on the network level, and can activate and deactivate SSL in the network menu for each site.
|
83 |
|
84 |
== Changelog ==
|
85 |
+
= 4.0.3 =
|
86 |
+
* Fix: sitehealth dismiss not working correctly, props @doffine
|
87 |
+
|
88 |
= 4.0.2 =
|
89 |
* Fix: not translatable string, props @kebbet
|
90 |
* Improvement: clear admin notices cache when SSL activated or reloaded over https
|
rlrsssl-really-simple-ssl.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Really Simple SSL
|
4 |
* Plugin URI: https://really-simple-ssl.com
|
5 |
* Description: Lightweight plugin without any setup to make your site SSL proof
|
6 |
-
* Version: 4.0.
|
7 |
* Author: Really Simple Plugins
|
8 |
* Author URI: https://really-simple-plugins.com
|
9 |
* License: GPL2
|
3 |
* Plugin Name: Really Simple SSL
|
4 |
* Plugin URI: https://really-simple-ssl.com
|
5 |
* Description: Lightweight plugin without any setup to make your site SSL proof
|
6 |
+
* Version: 4.0.3
|
7 |
* Author: Really Simple Plugins
|
8 |
* Author URI: https://really-simple-plugins.com
|
9 |
* License: GPL2
|