Widget Options - Version 3.7.14

Version Description

  • Fixed PHP Recoverable fatal error when switching AMP mode
Download this release

Release Info

Developer edbertguinto
Plugin Icon 128x128 Widget Options
Version 3.7.14
Comparing to
See all releases

Code changes from version 3.7.13 to 3.7.14

Files changed (3) hide show
  1. includes/widgets/extras.php +2 -2
  2. plugin.php +2 -2
  3. readme.txt +5 -2
includes/widgets/extras.php CHANGED
@@ -126,9 +126,9 @@ if( !function_exists( 'widgetopts_sidebars_widgets' ) ){
126
  $show = $checked[ $widget ];
127
  } else {
128
  $opts = $wp_registered_widgets[ $widget ];
129
- $id_base = is_array( $opts['callback'] ) ? $opts['callback'][0]->id_base : $opts['callback'];
130
 
131
- if ( ! $id_base ) {
132
  continue;
133
  }
134
 
126
  $show = $checked[ $widget ];
127
  } else {
128
  $opts = $wp_registered_widgets[ $widget ];
129
+ $id_base = is_array( $opts['callback'] ) || $opts['callback'] instanceof ArrayAccess ? $opts['callback'][0]->id_base : $opts['callback'];
130
 
131
+ if ( ! is_string( $id_base ) ) {
132
  continue;
133
  }
134
 
plugin.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Widget Options
4
  * Plugin URI: https://widget-options.com/
5
  * Description: Additional Widget options for better widget control. Get <strong><a href="http://widget-options.com/" target="_blank" >Extended Widget Options for WordPress</a></strong> for complete widget controls. Thanks!
6
- * Version: 3.7.13
7
  * Author: Widget Options Team
8
  * Author URI: https://widget-options.com/
9
  * Text Domain: widget-options
@@ -85,7 +85,7 @@ final class WP_Widget_Options {
85
 
86
  // Plugin version.
87
  if ( ! defined( 'WIDGETOPTS_VERSION' ) ) {
88
- define( 'WIDGETOPTS_VERSION', '3.7.13' );
89
  }
90
 
91
  // Plugin Folder Path.
3
  * Plugin Name: Widget Options
4
  * Plugin URI: https://widget-options.com/
5
  * Description: Additional Widget options for better widget control. Get <strong><a href="http://widget-options.com/" target="_blank" >Extended Widget Options for WordPress</a></strong> for complete widget controls. Thanks!
6
+ * Version: 3.7.14
7
  * Author: Widget Options Team
8
  * Author URI: https://widget-options.com/
9
  * Text Domain: widget-options
85
 
86
  // Plugin version.
87
  if ( ! defined( 'WIDGETOPTS_VERSION' ) ) {
88
+ define( 'WIDGETOPTS_VERSION', '3.7.14' );
89
  }
90
 
91
  // Plugin Folder Path.
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: widgets, restrict widgets, display widgets, widget logic, hide widgets, hi
5
  Requires at least: 4.0
6
  Tested up to: 5.9
7
  Requires PHP: 5.6
8
- Stable tag: 3.7.13
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -154,6 +154,10 @@ Widget Options is a featured pack fully lightweight plugin. Using Query Monitor
154
 
155
  == Changelog ==
156
 
 
 
 
 
157
  = 3.7.13 =
158
 
159
  * Fixed issue in versioning
@@ -161,7 +165,6 @@ Widget Options is a featured pack fully lightweight plugin. Using Query Monitor
161
  = 3.7.12 =
162
 
163
  * Fixed jQuery UI styles
164
- * Fixed PHP Recoverable fatal error – when switching AMP mode
165
 
166
  = 3.7.11 =
167
  * Fixed visibility issue for WooCommerce taxonomies.
5
  Requires at least: 4.0
6
  Tested up to: 5.9
7
  Requires PHP: 5.6
8
+ Stable tag: 3.7.14
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
154
 
155
  == Changelog ==
156
 
157
+ = 3.7.14 =
158
+
159
+ * Fixed PHP Recoverable fatal error – when switching AMP mode
160
+
161
  = 3.7.13 =
162
 
163
  * Fixed issue in versioning
165
  = 3.7.12 =
166
 
167
  * Fixed jQuery UI styles
 
168
 
169
  = 3.7.11 =
170
  * Fixed visibility issue for WooCommerce taxonomies.