Really Simple SSL - Version 6.0.11

Version Description

  • Fix: on some environments, the HTTP_X_WP_NONCE is not available in the code, changed logged in check to accomodate such environments
  • Fix: dismiss on admin notices not immediately dismissing, requiring dismiss through dashboard, props @dumel
Download this release

Release Info

Developer RogierLankhorst
Plugin Icon 128x128 Really Simple SSL
Version 6.0.11
Comparing to
See all releases

Code changes from version 6.0.10 to 6.0.11

languages/really-simple-ssl.pot CHANGED
@@ -2,14 +2,14 @@
2
  # This file is distributed under the GPL2.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Really Simple SSL 6.0.10\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/really-simple-ssl\n"
7
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
8
  "Language-Team: LANGUAGE <LL@li.org>\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
- "POT-Creation-Date: 2022-11-16T10:32:27+00:00\n"
13
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14
  "X-Generator: WP-CLI 2.6.0\n"
15
  "X-Domain: really-simple-ssl\n"
@@ -1540,25 +1540,25 @@ msgstr ""
1540
  msgid "Widget with mixed content"
1541
  msgstr ""
1542
 
1543
- #: progress/class-progress.php:81
1544
  msgid "SSL is activated on your site."
1545
  msgstr ""
1546
 
1547
- #: progress/class-progress.php:81
1548
  msgid "You still have %s task open."
1549
  msgid_plural "You still have %s tasks open."
1550
  msgstr[0] ""
1551
  msgstr[1] ""
1552
 
1553
- #: progress/class-progress.php:83
1554
  msgid "SSL configuration finished!"
1555
  msgstr ""
1556
 
1557
- #: progress/class-progress.php:88
1558
  msgid "Basic SSL configuration finished! Improve your score with %sReally Simple SSL Pro%s."
1559
  msgstr ""
1560
 
1561
- #: progress/class-progress.php:94
1562
  msgid "SSL is not yet enabled on this site."
1563
  msgstr ""
1564
 
2
  # This file is distributed under the GPL2.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Really Simple SSL 6.0.11\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/really-simple-ssl\n"
7
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
8
  "Language-Team: LANGUAGE <LL@li.org>\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
+ "POT-Creation-Date: 2022-11-21T13:09:23+00:00\n"
13
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14
  "X-Generator: WP-CLI 2.6.0\n"
15
  "X-Domain: really-simple-ssl\n"
1540
  msgid "Widget with mixed content"
1541
  msgstr ""
1542
 
1543
+ #: progress/class-progress.php:85
1544
  msgid "SSL is activated on your site."
1545
  msgstr ""
1546
 
1547
+ #: progress/class-progress.php:85
1548
  msgid "You still have %s task open."
1549
  msgid_plural "You still have %s tasks open."
1550
  msgstr[0] ""
1551
  msgstr[1] ""
1552
 
1553
+ #: progress/class-progress.php:87
1554
  msgid "SSL configuration finished!"
1555
  msgstr ""
1556
 
1557
+ #: progress/class-progress.php:92
1558
  msgid "Basic SSL configuration finished! Improve your score with %sReally Simple SSL Pro%s."
1559
  msgstr ""
1560
 
1561
+ #: progress/class-progress.php:98
1562
  msgid "SSL is not yet enabled on this site."
1563
  msgstr ""
1564
 
progress/class-progress.php CHANGED
@@ -7,6 +7,10 @@ class rsssl_progress {
7
  if ( isset( self::$_this ) )
8
  wp_die( sprintf( '%s is a singleton class and you cannot create a second instance.', get_class( $this ) ) );
9
  self::$_this = $this;
 
 
 
 
10
  }
11
 
12
  static function this() {
@@ -110,7 +114,6 @@ class rsssl_progress {
110
  if ( !rsssl_user_can_manage() ) {
111
  return;
112
  }
113
-
114
  if (isset($_GET['dismiss_notice'])) {
115
  $id = sanitize_title($_GET['dismiss_notice']);
116
  $this->dismiss_task($id);
7
  if ( isset( self::$_this ) )
8
  wp_die( sprintf( '%s is a singleton class and you cannot create a second instance.', get_class( $this ) ) );
9
  self::$_this = $this;
10
+
11
+ if ( RSSSL()->admin->is_settings_page() ) {
12
+ add_action( 'admin_init', array( $this, 'dismiss_from_admin_notice') );
13
+ }
14
  }
15
 
16
  static function this() {
114
  if ( !rsssl_user_can_manage() ) {
115
  return;
116
  }
 
117
  if (isset($_GET['dismiss_notice'])) {
118
  $id = sanitize_title($_GET['dismiss_notice']);
119
  $this->dismiss_task($id);
readme.txt CHANGED
@@ -6,7 +6,7 @@ Requires at least: 5.7
6
  License: GPL2
7
  Tested up to: 6.1
8
  Requires PHP: 7.2
9
- Stable tag: 6.0.10
10
 
11
  The easiest way to improve security! Leverage your SSL certificate and protect your website visitors.
12
 
@@ -96,6 +96,10 @@ The plugin checks your certificate before enabling, but if, for example, you mig
96
  If you can't deactivate, do not just remove the plugin folder to uninstall! Follow these [instructions](https://really-simple-ssl.com/knowledge-base/uninstall-websitebackend-not-accessible/) instead.
97
 
98
  == Changelog ==
 
 
 
 
99
  = 6.0.10 =
100
  * Fix: Apache 2.4 support for the block code execution in the uploads directory hardening feature, props @overlake
101
  * Fix: When used with Varnish cache, Rest API get requests were cached, causing the settings page not to update.
6
  License: GPL2
7
  Tested up to: 6.1
8
  Requires PHP: 7.2
9
+ Stable tag: 6.0.11
10
 
11
  The easiest way to improve security! Leverage your SSL certificate and protect your website visitors.
12
 
96
  If you can't deactivate, do not just remove the plugin folder to uninstall! Follow these [instructions](https://really-simple-ssl.com/knowledge-base/uninstall-websitebackend-not-accessible/) instead.
97
 
98
  == Changelog ==
99
+ = 6.0.11 =
100
+ * Fix: on some environments, the HTTP_X_WP_NONCE is not available in the code, changed logged in check to accomodate such environments
101
+ * Fix: dismiss on admin notices not immediately dismissing, requiring dismiss through dashboard, props @dumel
102
+
103
  = 6.0.10 =
104
  * Fix: Apache 2.4 support for the block code execution in the uploads directory hardening feature, props @overlake
105
  * Fix: When used with Varnish cache, Rest API get requests were cached, causing the settings page not to update.
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 SSL & Hardening Plugin
6
- * Version: 6.0.10
7
  * Author: Really Simple Plugins
8
  * Author URI: https://really-simple-plugins.com
9
  * License: GPL2
@@ -110,7 +110,7 @@ class REALLY_SIMPLE_SSL
110
  if (!defined('rsssl_file') ){
111
  define('rsssl_file', __FILE__);
112
  }
113
- define('rsssl_version', '6.0.10');
114
  define('rsssl_le_cron_generation_renewal_check', 20);
115
  define('rsssl_le_manual_generation_renewal_check', 15);
116
  }
@@ -275,6 +275,9 @@ add_action('plugins_loaded', 'RSSSL', 8);
275
  if ( !function_exists('rsssl_is_logged_in_rest')){
276
  function rsssl_is_logged_in_rest(){
277
  $valid_request = isset($_SERVER['REQUEST_URI']) && strpos($_SERVER['REQUEST_URI'], '/reallysimplessl/v1/')!==false;
278
- return $valid_request && isset($_SERVER['HTTP_X_WP_NONCE']) && wp_verify_nonce($_SERVER['HTTP_X_WP_NONCE'], 'wp_rest');
 
 
 
279
  }
280
  }
3
  * Plugin Name: Really Simple SSL
4
  * Plugin URI: https://really-simple-ssl.com
5
  * Description: Lightweight SSL & Hardening Plugin
6
+ * Version: 6.0.11
7
  * Author: Really Simple Plugins
8
  * Author URI: https://really-simple-plugins.com
9
  * License: GPL2
110
  if (!defined('rsssl_file') ){
111
  define('rsssl_file', __FILE__);
112
  }
113
+ define('rsssl_version', '6.0.11');
114
  define('rsssl_le_cron_generation_renewal_check', 20);
115
  define('rsssl_le_manual_generation_renewal_check', 15);
116
  }
275
  if ( !function_exists('rsssl_is_logged_in_rest')){
276
  function rsssl_is_logged_in_rest(){
277
  $valid_request = isset($_SERVER['REQUEST_URI']) && strpos($_SERVER['REQUEST_URI'], '/reallysimplessl/v1/')!==false;
278
+ if ( !$valid_request ) {
279
+ return false;
280
+ }
281
+ return is_user_logged_in();
282
  }
283
  }