Widget Importer & Exporter - Version 1.5.1

Version Description

Download this release

Release Info

Developer stevengliebe
Plugin Icon 128x128 Widget Importer & Exporter
Version 1.5.1
Comparing to
See all releases

Code changes from version 1.5 to 1.5.1

includes/notices.php CHANGED
@@ -96,8 +96,14 @@ function wie_show_security_notice( $type ) {
96
  } elseif ( 'http' === $type ) {
97
 
98
  // Only if HTTPS is not used.
99
- // is_ssl() no reliable with load balancers so instead check if Settings > General is using an https URL.
100
- if ( preg_match( '/^https:.*/', get_bloginfo( 'url' ) ) ) {
 
 
 
 
 
 
101
  $show = false;
102
  }
103
 
96
  } elseif ( 'http' === $type ) {
97
 
98
  // Only if HTTPS is not used.
99
+ // is_ssl() not reliable with load balancers (may return false when using SSL) so instead check if Settings > General is using an https URL.
100
+ // But, some users will have SSL installed and access via https but forget to update URL settings.
101
+ // To avoid a false positive in this case, also check is_ssl() - to keep those users from being confused.
102
+ // The only false positive now should be user who forgot to update URL settings while behind load balancer.
103
+ // Basically we check two conditions because neither is totally reliable.
104
+ $site_url = get_bloginfo( 'url' );
105
+ $is_ssl = is_ssl();
106
+ if ( preg_match( '/^https:.*/', $site_url ) || $is_ssl ) {
107
  $show = false;
108
  }
109
 
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: wpultimate, churchthemes, stevengliebe, mauryaratan, wido
3
  Tags: widgets, widget, importer, exporter, import, export, widget import, widget export, widget importer, widget exporter, backup, migration
4
  Requires at least: 3.5
5
  Tested up to: 4.8.1
6
- Stable tag: 1.5
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
3
  Tags: widgets, widget, importer, exporter, import, export, widget import, widget export, widget importer, widget exporter, backup, migration
4
  Requires at least: 3.5
5
  Tested up to: 4.8.1
6
+ Stable tag: 1.5.1
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
widget-importer-exporter.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Widget Importer & Exporter
4
  * Plugin URI: https://wpultimate.com/widget-importer-exporter
5
  * Description: Imports and exports widgets.
6
- * Version: 1.5
7
  * Author: WP Ultimate
8
  * Author URI: https://wpultimate.com
9
  * License: GPLv2 or later
@@ -223,27 +223,21 @@ class Widget_Importer_Exporter {
223
 
224
  // Admin Only.
225
  case 'admin':
226
-
227
  if ( is_admin() ) {
228
  $do_includes = true;
229
  }
230
-
231
  break;
232
 
233
  // Frontend Only.
234
  case 'frontend':
235
-
236
  if ( ! is_admin() ) {
237
  $do_includes = true;
238
  }
239
-
240
  break;
241
 
242
  // Admin or Frontend (always).
243
  default:
244
-
245
  $do_includes = true;
246
-
247
  break;
248
 
249
  }
3
  * Plugin Name: Widget Importer & Exporter
4
  * Plugin URI: https://wpultimate.com/widget-importer-exporter
5
  * Description: Imports and exports widgets.
6
+ * Version: 1.5.1
7
  * Author: WP Ultimate
8
  * Author URI: https://wpultimate.com
9
  * License: GPLv2 or later
223
 
224
  // Admin Only.
225
  case 'admin':
 
226
  if ( is_admin() ) {
227
  $do_includes = true;
228
  }
 
229
  break;
230
 
231
  // Frontend Only.
232
  case 'frontend':
 
233
  if ( ! is_admin() ) {
234
  $do_includes = true;
235
  }
 
236
  break;
237
 
238
  // Admin or Frontend (always).
239
  default:
 
240
  $do_includes = true;
 
241
  break;
242
 
243
  }