Widget Options - Version 3.7.6

Version Description

  • Fix blank page issue in admin widget page.
Download this release

Release Info

Developer justhyre
Plugin Icon 128x128 Widget Options
Version 3.7.6
Comparing to
See all releases

Code changes from version 3.7.5 to 3.7.6

Files changed (3) hide show
  1. includes/widgets/display.php +7 -6
  2. plugin.php +2 -2
  3. readme.txt +4 -1
includes/widgets/display.php CHANGED
@@ -409,13 +409,14 @@ endif;
409
  $id_base = $wp_registered_widget_controls[ $params[0]['widget_id'] ]['id_base'];
410
  $instance = get_option( 'widget_' . $id_base );
411
 
412
- if( isset( $wp_registered_widget_controls[ $params[0]['widget_id'] ]['params'][0]['number'] ) ){
 
413
  $num = $wp_registered_widget_controls[ $params[0]['widget_id'] ]['params'][0]['number'];
414
- }elseif( isset( $wp_registered_widget_controls[ $params[0]['widget_id'] ]['callback'][0]->number ) ){
415
- $num = $wp_registered_widget_controls[ $params[0]['widget_id'] ]['callback'][0]->number;
416
- }else{
417
- $num = substr( $params[0]['widget_id'], -1 );
418
- }
419
  if( isset( $instance[ $num ] ) ){
420
  $opts = ( isset( $instance[ $num ][ 'extended_widget_opts-'. $params[0]['widget_id'] ] ) ) ? $instance[ $num ][ 'extended_widget_opts-'. $params[0]['widget_id'] ] : array();
421
  }else{
409
  $id_base = $wp_registered_widget_controls[ $params[0]['widget_id'] ]['id_base'];
410
  $instance = get_option( 'widget_' . $id_base );
411
 
412
+ $num = substr( $params[0]['widget_id'], -1 );
413
+ if( isset( $wp_registered_widget_controls[ $params[0]['widget_id'] ]['params'][0]['number'] ) ){
414
  $num = $wp_registered_widget_controls[ $params[0]['widget_id'] ]['params'][0]['number'];
415
+ } elseif( isset($wp_registered_widget_controls[ $params[0]['widget_id'] ]['callback']) && is_array($wp_registered_widget_controls[ $params[0]['widget_id'] ]['callback'])){
416
+ if (isset($wp_registered_widget_controls[ $params[0]['widget_id'] ]['callback'][0]) && isset( $wp_registered_widget_controls[ $params[0]['widget_id'] ]['callback'][0]->number)) {
417
+ $num = $wp_registered_widget_controls[ $params[0]['widget_id'] ]['callback'][0]->number;
418
+ }
419
+ }
420
  if( isset( $instance[ $num ] ) ){
421
  $opts = ( isset( $instance[ $num ][ 'extended_widget_opts-'. $params[0]['widget_id'] ] ) ) ? $instance[ $num ][ 'extended_widget_opts-'. $params[0]['widget_id'] ] : array();
422
  }else{
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.5
7
  * Author: Widget Options Team
8
  * Author URI: https://widget-options.com/
9
  * Text Domain: widget-options
@@ -72,7 +72,7 @@ final class WP_Widget_Options {
72
 
73
  // Plugin version.
74
  if ( ! defined( 'WIDGETOPTS_VERSION' ) ) {
75
- define( 'WIDGETOPTS_VERSION', ' 3.7.5' );
76
  }
77
 
78
  // 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.6
7
  * Author: Widget Options Team
8
  * Author URI: https://widget-options.com/
9
  * Text Domain: widget-options
72
 
73
  // Plugin version.
74
  if ( ! defined( 'WIDGETOPTS_VERSION' ) ) {
75
+ define( 'WIDGETOPTS_VERSION', ' 3.7.6' );
76
  }
77
 
78
  // 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.5
7
  Requires PHP: 5.6
8
- Stable tag: 3.7.5
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -154,6 +154,9 @@ Widget Options is a featured pack fully lightweight plugin. Using Query Monitor
154
 
155
  == Changelog ==
156
 
 
 
 
157
  = 3.7.5 =
158
  * Compatible with Latest WordPress.
159
  * Other improvements.
5
  Requires at least: 4.0
6
  Tested up to: 5.5
7
  Requires PHP: 5.6
8
+ Stable tag: 3.7.6
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.6 =
158
+ * Fix blank page issue in admin widget page.
159
+
160
  = 3.7.5 =
161
  * Compatible with Latest WordPress.
162
  * Other improvements.