Really Simple SSL - Version 3.2.6

Version Description

  • Optimized plusone count function
  • Disabled Javascript redirect by default
  • Fixed a bug in the setting highlight function where an undefined setting name could cause a warning
Download this release

Release Info

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

Code changes from version 3.2.5 to 3.2.6

class-admin.php CHANGED
@@ -1157,9 +1157,9 @@ class rsssl_admin extends rsssl_front_end
1157
 
1158
  public function save_options()
1159
  {
1160
- delete_transient('rsssl_plusone_count');
1161
 
1162
- //any options added here should also be added to function options_validate()
1163
  $options = array(
1164
  'site_has_ssl' => $this->site_has_ssl,
1165
  'hsts' => $this->hsts,
@@ -1178,10 +1178,7 @@ class rsssl_admin extends rsssl_front_end
1178
  'dismiss_all_notices' => $this->dismiss_all_notices,
1179
 
1180
  );
1181
-
1182
  update_option('rlrsssl_options', $options);
1183
-
1184
-
1185
  }
1186
 
1187
  /**
@@ -2363,7 +2360,7 @@ class rsssl_admin extends rsssl_front_end
2363
  if (isset($_POST['type'])) {
2364
  $dismiss_type = sanitize_title( $_POST['type'] );
2365
  update_option( "rsssl_".$dismiss_type."_dismissed", true );
2366
- delete_transient( 'rsssl_plusone_count' );
2367
  }
2368
  wp_die(); // this is required to terminate immediately and return a proper response
2369
  }
@@ -2793,7 +2790,6 @@ class rsssl_admin extends rsssl_front_end
2793
  $output = $func();
2794
 
2795
  if (!isset($notice['output'][$output])) {
2796
- error_log('Output index not set');
2797
  return;
2798
  }
2799
 
@@ -2836,8 +2832,9 @@ class rsssl_admin extends rsssl_front_end
2836
 
2837
  public function count_plusones(){
2838
  if (!current_user_can('manage_options')) return 0;
 
2839
  $count = get_transient('rsssl_plusone_count');
2840
- if (!$count) {
2841
  $count = 0;
2842
 
2843
  $options = get_option('rlrsssl_options');
@@ -3912,9 +3909,11 @@ class rsssl_admin extends rsssl_front_end
3912
  ?>
3913
 
3914
  $(function() {
3915
- if (document.location.href.indexOf('&highlight=' + setting_name) > -1 ) {
 
3916
  $('#rsssl-maybe-highlight-' + setting_name).closest('tr').addClass('rsssl-highlight');
3917
  }
 
3918
  });
3919
  });
3920
  </script>
1157
 
1158
  public function save_options()
1159
  {
1160
+ delete_transient('rsssl_plusone_count');
1161
 
1162
+ //any options added here should also be added to function options_validate()
1163
  $options = array(
1164
  'site_has_ssl' => $this->site_has_ssl,
1165
  'hsts' => $this->hsts,
1178
  'dismiss_all_notices' => $this->dismiss_all_notices,
1179
 
1180
  );
 
1181
  update_option('rlrsssl_options', $options);
 
 
1182
  }
1183
 
1184
  /**
2360
  if (isset($_POST['type'])) {
2361
  $dismiss_type = sanitize_title( $_POST['type'] );
2362
  update_option( "rsssl_".$dismiss_type."_dismissed", true );
2363
+ delete_transient( 'rsssl_plusone_count' );
2364
  }
2365
  wp_die(); // this is required to terminate immediately and return a proper response
2366
  }
2790
  $output = $func();
2791
 
2792
  if (!isset($notice['output'][$output])) {
 
2793
  return;
2794
  }
2795
 
2832
 
2833
  public function count_plusones(){
2834
  if (!current_user_can('manage_options')) return 0;
2835
+
2836
  $count = get_transient('rsssl_plusone_count');
2837
+ if ($count===FALSE) {
2838
  $count = 0;
2839
 
2840
  $options = get_option('rlrsssl_options');
3909
  ?>
3910
 
3911
  $(function() {
3912
+ if(typeof setting_name !== 'undefined' && setting_name != '') {
3913
+ if (document.location.href.indexOf('&highlight=' + setting_name) > -1) {
3914
  $('#rsssl-maybe-highlight-' + setting_name).closest('tr').addClass('rsssl-highlight');
3915
  }
3916
+ }
3917
  });
3918
  });
3919
  </script>
class-front-end.php CHANGED
@@ -6,7 +6,7 @@ if ( ! class_exists( 'rsssl_front_end' ) ) {
6
  class rsssl_front_end
7
  {
8
  private static $_this;
9
- public $javascript_redirect = TRUE;
10
  public $wp_redirect = TRUE;
11
  public $autoreplace_insecure_links = TRUE;
12
  public $switch_mixed_content_fixer_hook = FALSE;
@@ -126,7 +126,7 @@ if ( ! class_exists( 'rsssl_front_end' ) ) {
126
  if (isset($options)) {
127
  $this->autoreplace_insecure_links = isset($options['autoreplace_insecure_links']) ? $options['autoreplace_insecure_links'] : TRUE;
128
  $this->ssl_enabled = isset($options['ssl_enabled']) ? $options['ssl_enabled'] : false;
129
- $this->javascript_redirect = isset($options['javascript_redirect']) ? $options['javascript_redirect'] : TRUE;
130
  $this->wp_redirect = isset($options['wp_redirect']) ? $options['wp_redirect'] : FALSE;
131
  $this->switch_mixed_content_fixer_hook = isset($options['switch_mixed_content_fixer_hook']) ? $options['switch_mixed_content_fixer_hook'] : FALSE;
132
 
6
  class rsssl_front_end
7
  {
8
  private static $_this;
9
+ public $javascript_redirect = FALSE;
10
  public $wp_redirect = TRUE;
11
  public $autoreplace_insecure_links = TRUE;
12
  public $switch_mixed_content_fixer_hook = FALSE;
126
  if (isset($options)) {
127
  $this->autoreplace_insecure_links = isset($options['autoreplace_insecure_links']) ? $options['autoreplace_insecure_links'] : TRUE;
128
  $this->ssl_enabled = isset($options['ssl_enabled']) ? $options['ssl_enabled'] : false;
129
+ $this->javascript_redirect = isset($options['javascript_redirect']) ? $options['javascript_redirect'] : FALSE;
130
  $this->wp_redirect = isset($options['wp_redirect']) ? $options['wp_redirect'] : FALSE;
131
  $this->switch_mixed_content_fixer_hook = isset($options['switch_mixed_content_fixer_hook']) ? $options['switch_mixed_content_fixer_hook'] : FALSE;
132
 
readme.txt CHANGED
@@ -6,7 +6,7 @@ Requires at least: 4.6
6
  License: GPL2
7
  Tested up to: 5.2
8
  Requires PHP: 5.4
9
- Stable tag: 3.2.5
10
 
11
  No setup required! You only need an SSL certificate, and this plugin will do the rest.
12
 
@@ -82,8 +82,13 @@ 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
  = 3.2.5 =
86
- * Fixed type in trace_log() function call
87
 
88
  = 3.2.4 =
89
  * Improved and added dashboard notices
6
  License: GPL2
7
  Tested up to: 5.2
8
  Requires PHP: 5.4
9
+ Stable tag: 3.2.6
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
+ = 3.2.6 =
86
+ * Optimized plusone count function
87
+ * Disabled Javascript redirect by default
88
+ * Fixed a bug in the setting highlight function where an undefined setting name could cause a warning
89
+
90
  = 3.2.5 =
91
+ * Fixed typo in trace_log() function call
92
 
93
  = 3.2.4 =
94
  * Improved and added dashboard notices
rlrsssl-really-simple-ssl.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Really Simple SSL
4
  * Plugin URI: https://www.really-simple-ssl.com
5
  * Description: Lightweight plugin without any setup to make your site SSL proof
6
- * Version: 3.2.5
7
  * Text Domain: really-simple-ssl
8
  * Domain Path: /languages
9
  * Author: Rogier Lankhorst, Mark Wolters
3
  * Plugin Name: Really Simple SSL
4
  * Plugin URI: https://www.really-simple-ssl.com
5
  * Description: Lightweight plugin without any setup to make your site SSL proof
6
+ * Version: 3.2.6
7
  * Text Domain: really-simple-ssl
8
  * Domain Path: /languages
9
  * Author: Rogier Lankhorst, Mark Wolters