Restrict Widgets - Version 1.2.6.1

Version Description

  • Fix: Page hide/display settings broken after 1.2.6 update
Download this release

Release Info

Developer dfactory
Plugin Icon 128x128 Restrict Widgets
Version 1.2.6.1
Comparing to
See all releases

Code changes from version 1.2.6 to 1.2.6.1

Files changed (2) hide show
  1. readme.txt +6 -3
  2. restrict-widgets.php +2 -2
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.dfactory.eu/
4
  Tags: widget, widgets, widget-only, cms, conditional tags, conditional, widget logic, widget context, restrict, manage, management, capability, capabilities, sidebar, sidebars, user, permission, permissions
5
  Requires at least: 3.8
6
  Tested up to: 4.1
7
- Stable tag: 1.2.6
8
  License: MIT License
9
  License URI: http://opensource.org/licenses/MIT
10
 
@@ -57,6 +57,9 @@ No questions yet.
57
 
58
  == Changelog ==
59
 
 
 
 
60
  = 1.2.6 =
61
  * New: Hebrew translation by [Ahrale Shrem](http://atar4u.com/)
62
 
@@ -114,5 +117,5 @@ Initial release
114
 
115
  == Upgrade Notice ==
116
 
117
- = 1.2.6 =
118
- * New: Czech translation by [Ahrale Shrem](http://atar4u.com/)
4
  Tags: widget, widgets, widget-only, cms, conditional tags, conditional, widget logic, widget context, restrict, manage, management, capability, capabilities, sidebar, sidebars, user, permission, permissions
5
  Requires at least: 3.8
6
  Tested up to: 4.1
7
+ Stable tag: 1.2.6.1
8
  License: MIT License
9
  License URI: http://opensource.org/licenses/MIT
10
 
57
 
58
  == Changelog ==
59
 
60
+ = 1.2.6.1 =
61
+ * Fix: Page hide/display settings broken after 1.2.6 update
62
+
63
  = 1.2.6 =
64
  * New: Hebrew translation by [Ahrale Shrem](http://atar4u.com/)
65
 
117
 
118
  == Upgrade Notice ==
119
 
120
+ = 1.2.6.1 =
121
+ * Fix: Page hide/display settings broken after 1.2.6 update
restrict-widgets.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  Plugin Name: Restrict Widgets
4
  Description: All in one solution for widget management in WordPress. Allows you to hide or display widgets on specified pages and restrict access for users.
5
- Version: 1.2.6
6
  Author: dFactory
7
  Author URI: http://www.dfactory.eu/
8
  Plugin URI: http://www.dfactory.eu/plugins/restrict-widgets/
@@ -1594,7 +1594,7 @@ class Restrict_Widgets
1594
  }
1595
  elseif(is_home())
1596
  $found_main = isset($instance['rw_opt']['others_blog_page']) ? true : false;
1597
- elseif(is_singular())
1598
  {
1599
  $found_main = isset($instance['rw_opt']['cpt_'.get_post_type($post_id)]) ? true : false;
1600
 
2
  /*
3
  Plugin Name: Restrict Widgets
4
  Description: All in one solution for widget management in WordPress. Allows you to hide or display widgets on specified pages and restrict access for users.
5
+ Version: 1.2.6.1
6
  Author: dFactory
7
  Author URI: http://www.dfactory.eu/
8
  Plugin URI: http://www.dfactory.eu/plugins/restrict-widgets/
1594
  }
1595
  elseif(is_home())
1596
  $found_main = isset($instance['rw_opt']['others_blog_page']) ? true : false;
1597
+ elseif(is_singular() && !is_page())
1598
  {
1599
  $found_main = isset($instance['rw_opt']['cpt_'.get_post_type($post_id)]) ? true : false;
1600