WooSidebars - Version 1.4.6

Version Description

Fixes a sprintf modifier which was breaking WP Admin on sites running PHP8. Fixes alignment of the content of the "Taxanomy Terms" conditions tab in WP Admin.

Download this release

Release Info

Developer mattyza
Plugin Icon wp plugin WooSidebars
Version 1.4.6
Comparing to
See all releases

Code changes from version 1.4.5 to 1.4.6

CONTRIBUTING.md CHANGED
File without changes
assets/css/admin-posts.css CHANGED
File without changes
assets/css/admin.css CHANGED
@@ -1,23 +1,23 @@
1
  .conditions-tabs li { display: inline; margin: 5px 0; padding: 5px; }
2
  .woo-conditions.ui-tabs { padding: 0; }
3
- .woo-conditions .ui-tabs-hide { display: none !important; }
4
  .woo-conditions .ui-widget-header { border: none; }
5
  .woo-conditions .conditions-tabs { background:#eaeaea;padding:3px 9px 0;margin:0;overflow:hidden;zoom:1;line-height:1em;-webkit-box-shadow:inset 0 -1px 0 0 #d5d5d5;-moz-box-shadow:inset 0 -1px 0 0 x #d5d5d5;box-shadow:inset 0 -1px 0 0 #d5d5d5; }
6
  .woo-conditions .conditions-tabs li { float:left;padding:0;margin:0 5px 0 0; }
7
  .woo-conditions .conditions-tabs li.alignright { float: right; }
8
  .woo-conditions .conditions-tabs li.hide { display: none; }
9
  .woo-conditions .conditions-tabs li.advanced-settings a { background-image: url(../images/icon-settings.png); background-repeat: no-repeat; background-position: 8px 50%; padding-left: 30px; }
10
- .woo-conditions .conditions-tabs li a { padding:0;margin:0;border:0;border:1px solid #d5d5d5;border-bottom:0;float:left;padding:9px 9px;background:#ececec;text-decoration:none;color:#555;-moz-border-radius-topleft:3px;-moz-border-radius-topright:3px;-webkit-border-top-left-radius:3px;-webkit-border-top-right-radius:3px;border-top-left-radius:3px;border-top-right-radius:3px;-webkit-box-shadow:inset 0 1px 0 1px rgba(255, 255, 255, 0.5);-moz-box-shadow:inset 0 1px 0 1px rgba(255, 255, 255, 0.5);box-shadow:inset 0 1px 0 1px rgba(255, 255, 255, 0.5); }
11
  .woo-conditions .conditions-tabs li.ui-state-active {}
12
- .woo-conditions .conditions-tabs li.ui-state-active a { background:#f8f8f8;color:#555;background-image:linear-gradient(bottom, #ffffff 0%, #f8f8f8 100%);background-image:-o-linear-gradient(bottom, #ffffff 0%, #f8f8f8 100%);background-image:-moz-linear-gradient(bottom, #ffffff 0%, #f8f8f8 100%);background-image:-webkit-linear-gradient(bottom, #ffffff 0%, #f8f8f8 100%);background-image:-ms-linear-gradient(bottom, #ffffff 0%, #f8f8f8 100%);background-image:-webkit-gradient(linear, left bottom, left top, color-stop(0, #ffffff), color-stop(1, #f8f8f8)); }
13
  #woosidebars-conditions.postbox .inside { background: #FFFFFF; padding: 0; margin: 0; }
14
  #woosidebars-conditions.postbox .inside .condition-tab { background: #FFFFFF; padding: 2px 18px; }
15
  #woosidebars-conditions.postbox .inside .condition-tab h4 { margin-top: 10px; }
16
 
17
  #woosidebars-conditions.postbox .conditions-column { display: block; margin: 0 20px 20px 0; }
18
 
19
- #woosidebars-conditions.postbox .conditions-tabs-inner { display: block; padding: 10px 0; }
20
- .conditions-tabs-inner li { display: inline; padding: .2em; line-height: 2; margin: 0; }
21
  .conditions-tabs-inner li a { margin-right: 5px; text-decoration: none; }
22
  .conditions-tabs-inner li.ui-state-active a { color: #000000; font-weight: bold; }
23
  #woosidebars-conditions.postbox .inside .condition-tab .condition-tab { padding: 2px 0px; }
1
  .conditions-tabs li { display: inline; margin: 5px 0; padding: 5px; }
2
  .woo-conditions.ui-tabs { padding: 0; }
3
+ .woo-conditions .ui-tabs-hide { display: none; }
4
  .woo-conditions .ui-widget-header { border: none; }
5
  .woo-conditions .conditions-tabs { background:#eaeaea;padding:3px 9px 0;margin:0;overflow:hidden;zoom:1;line-height:1em;-webkit-box-shadow:inset 0 -1px 0 0 #d5d5d5;-moz-box-shadow:inset 0 -1px 0 0 x #d5d5d5;box-shadow:inset 0 -1px 0 0 #d5d5d5; }
6
  .woo-conditions .conditions-tabs li { float:left;padding:0;margin:0 5px 0 0; }
7
  .woo-conditions .conditions-tabs li.alignright { float: right; }
8
  .woo-conditions .conditions-tabs li.hide { display: none; }
9
  .woo-conditions .conditions-tabs li.advanced-settings a { background-image: url(../images/icon-settings.png); background-repeat: no-repeat; background-position: 8px 50%; padding-left: 30px; }
10
+ .woo-conditions .conditions-tabs li a { padding:0;margin:0;border:0;border:1px solid #d5d5d5;border-bottom:0;float:left; outline: none; padding:9px 9px;background:#ececec;text-decoration:none;color:#555;-moz-border-radius-topleft:3px;-moz-border-radius-topright:3px;-webkit-border-top-left-radius:3px;-webkit-border-top-right-radius:3px;border-top-left-radius:3px;border-top-right-radius:3px;-webkit-box-shadow:inset 0 1px 0 1px rgba(255, 255, 255, 0.5);-moz-box-shadow:inset 0 1px 0 1px rgba(255, 255, 255, 0.5);box-shadow:inset 0 1px 0 1px rgba(255, 255, 255, 0.5); }
11
  .woo-conditions .conditions-tabs li.ui-state-active {}
12
+ .woo-conditions .conditions-tabs li.ui-state-active a { background:#FFFFFF; color:#555; }
13
  #woosidebars-conditions.postbox .inside { background: #FFFFFF; padding: 0; margin: 0; }
14
  #woosidebars-conditions.postbox .inside .condition-tab { background: #FFFFFF; padding: 2px 18px; }
15
  #woosidebars-conditions.postbox .inside .condition-tab h4 { margin-top: 10px; }
16
 
17
  #woosidebars-conditions.postbox .conditions-column { display: block; margin: 0 20px 20px 0; }
18
 
19
+ #woosidebars-conditions.postbox .conditions-tabs-inner { border-bottom: 1px solid #EBEBEB !important; display: block; margin-top: 0.4rem; padding: 0; padding-bottom: 0.4rem; }
20
+ .conditions-tabs-inner li { display: inline; padding: 0; line-height: 2; margin: 0; }
21
  .conditions-tabs-inner li a { margin-right: 5px; text-decoration: none; }
22
  .conditions-tabs-inner li.ui-state-active a { color: #000000; font-weight: bold; }
23
  #woosidebars-conditions.postbox .inside .condition-tab .condition-tab { padding: 2px 0px; }
assets/images/icon-settings.png CHANGED
File without changes
assets/images/success-off.png CHANGED
File without changes
assets/images/success.png CHANGED
File without changes
assets/js/admin.js CHANGED
File without changes
changelog.txt CHANGED
File without changes
classes/class-woo-conditions.php CHANGED
@@ -217,11 +217,10 @@ class Woo_Conditions {
217
  }
218
 
219
  // Page Templates
220
- $conditions['templates'] = array();
221
-
222
  $page_templates = get_page_templates();
223
 
224
- if ( count( $page_templates ) > 0 ) {
 
225
 
226
  $conditions_headings['templates'] = __( 'Page Templates', 'woosidebars' );
227
 
217
  }
218
 
219
  // Page Templates
 
 
220
  $page_templates = get_page_templates();
221
 
222
+ if ( 0 < count( $page_templates ) ) {
223
+ $conditions['templates'] = array();
224
 
225
  $conditions_headings['templates'] = __( 'Page Templates', 'woosidebars' );
226
 
classes/class-woo-sidebars.php CHANGED
@@ -167,7 +167,7 @@ class Woo_Sidebars {
167
  'new_item' => sprintf( __( 'New %s', 'woosidebars' ), $singular ),
168
  'all_items' => sprintf( __( 'Widget Areas', 'woosidebars' ), $plural ),
169
  'view_item' => sprintf( __( 'View %s', 'woosidebars' ), $singular ),
170
- 'search_items' => sprintf( __( 'Search %a', 'woosidebars' ), $plural ),
171
  'not_found' => sprintf( __( 'No %s Found', 'woosidebars' ), $plural ),
172
  'not_found_in_trash' => sprintf( __( 'No %s Found In Trash', 'woosidebars' ), $plural ),
173
  'parent_item_colon' => '',
167
  'new_item' => sprintf( __( 'New %s', 'woosidebars' ), $singular ),
168
  'all_items' => sprintf( __( 'Widget Areas', 'woosidebars' ), $plural ),
169
  'view_item' => sprintf( __( 'View %s', 'woosidebars' ), $singular ),
170
+ 'search_items' => sprintf( __( 'Search %s', 'woosidebars' ), $plural ),
171
  'not_found' => sprintf( __( 'No %s Found', 'woosidebars' ), $plural ),
172
  'not_found_in_trash' => sprintf( __( 'No %s Found In Trash', 'woosidebars' ), $plural ),
173
  'parent_item_colon' => '',
index.php CHANGED
File without changes
integrations/integration-woocommerce.php CHANGED
File without changes
lang/woosidebars.pot CHANGED
File without changes
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: woothemes, Automattic, mattyza
3
  Tags: widgets, sidebars, widget-areas
4
  Requires at least: 4.1
5
- Tested up to: 4.9.6
6
- Stable tag: 1.4.5
7
  License: GPLv3 or later
8
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
9
 
@@ -13,9 +13,9 @@ WooSidebars adds functionality to display different widgets in a sidebar, accord
13
 
14
  With WooSidebars, it's possible to change the widgets that display in a sidebar (widgetized area) according to a context (for example, a specific page, a specific blog post, certain categories or the search results screen). Setting up a custom widget area to display across multiple conditions is as easy as a few clicks.
15
 
16
- Looking for a helping hand? [View plugin documentation](http://docs.woothemes.com/documentation/plugins/woosidebars/).
17
 
18
- Looking to contribute code to this plugin? [Fork the repository over at GitHub](http://github.com/woothemes/woosidebars/). Please also read the CONTRIBUTING.md file, bundled within this plugin.
19
 
20
  == Installation ==
21
 
@@ -29,7 +29,7 @@ Looking to contribute code to this plugin? [Fork the repository over at GitHub](
29
 
30
  Automatic installation is the easiest option as WordPress handles the file transfers itself and you don’t even need to leave your web browser. To do an automatic install of WooSidebars, log in to your WordPress admin panel, navigate to the Plugins menu and click Add New.
31
 
32
- In the search field type "WooSidebars" and click Search Plugins. Once you’ve found our widget areas plugin you can view details about it such as the the point release, rating and description. Most importantly of course, you can install it by simply clicking Install Now. After clicking that link you will be asked if you’re sure you want to install the plugin. Click yes and WordPress will automatically complete the installation.
33
 
34
  = Manual installation =
35
 
@@ -51,7 +51,7 @@ Automatic updates should work a charm; as always though, ensure you backup your
51
 
52
  = Where can I find WooSidebars documentation and user guides? =
53
 
54
- For further documentation on using WooSidebars, please view the [WooSidebars Documentation](http://docs.woothemes.com/documentation/plugins/woosidebars/).
55
 
56
  = Will WooSidebars work with my theme? =
57
 
@@ -59,7 +59,7 @@ Yes; WooSidebars will work with any theme that supports dynamic widget areas.
59
 
60
  = How can I contribute to WooSidebars development? =
61
 
62
- Looking to contribute code to this plugin? [Fork the repository over at GitHub](http://github.com/woothemes/woosidebars/).
63
  (submit pull requests to the "develop" branch)
64
 
65
  == Screenshots ==
@@ -69,6 +69,10 @@ Looking to contribute code to this plugin? [Fork the repository over at GitHub](
69
 
70
  == Upgrade Notice ==
71
 
 
 
 
 
72
  = 1.4.5 =
73
  Fixes a fatal error, by removing the no longer relevant contextual help.
74
 
2
  Contributors: woothemes, Automattic, mattyza
3
  Tags: widgets, sidebars, widget-areas
4
  Requires at least: 4.1
5
+ Tested up to: 5.8.3
6
+ Stable tag: 1.4.6
7
  License: GPLv3 or later
8
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
9
 
13
 
14
  With WooSidebars, it's possible to change the widgets that display in a sidebar (widgetized area) according to a context (for example, a specific page, a specific blog post, certain categories or the search results screen). Setting up a custom widget area to display across multiple conditions is as easy as a few clicks.
15
 
16
+ Looking for a helping hand? [View plugin documentation](https://woocommerce.com/documentation/plugins/woosidebars/).
17
 
18
+ Looking to contribute code to this plugin? [Fork the repository over at GitHub](https://github.com/woocommerce/woosidebars/). Please also read the CONTRIBUTING.md file, bundled within this plugin.
19
 
20
  == Installation ==
21
 
29
 
30
  Automatic installation is the easiest option as WordPress handles the file transfers itself and you don’t even need to leave your web browser. To do an automatic install of WooSidebars, log in to your WordPress admin panel, navigate to the Plugins menu and click Add New.
31
 
32
+ In the search field type "WooSidebars" and click Search Plugins. Once you’ve found our widget areas plugin you can view details about it such as the point release, rating and description. Most importantly of course, you can install it by simply clicking Install Now. After clicking that link you will be asked if you’re sure you want to install the plugin. Click yes and WordPress will automatically complete the installation.
33
 
34
  = Manual installation =
35
 
51
 
52
  = Where can I find WooSidebars documentation and user guides? =
53
 
54
+ For further documentation on using WooSidebars, please view the [WooSidebars Documentation](https://woocommerce.com/documentation/plugins/woosidebars/).
55
 
56
  = Will WooSidebars work with my theme? =
57
 
59
 
60
  = How can I contribute to WooSidebars development? =
61
 
62
+ Looking to contribute code to this plugin? [Fork the repository over at GitHub](https://github.com/woocommerce/woosidebars/).
63
  (submit pull requests to the "develop" branch)
64
 
65
  == Screenshots ==
69
 
70
  == Upgrade Notice ==
71
 
72
+ = 1.4.6 =
73
+ Fixes a sprintf modifier which was breaking WP Admin on sites running PHP8.
74
+ Fixes alignment of the content of the "Taxanomy Terms" conditions tab in WP Admin.
75
+
76
  = 1.4.5 =
77
  Fixes a fatal error, by removing the no longer relevant contextual help.
78
 
woosidebars.php CHANGED
@@ -5,10 +5,10 @@
5
  * Description: Replace widget areas in your theme for specific pages, archives and other sections of WordPress.
6
  * Author: WooCommerce
7
  * Author URI: http://woocommerce.com/
8
- * Version: 1.4.5
9
- * Stable tag: 1.4.5
10
  * Requires at least: 4.1
11
- * Tested up to: 4.9.6
12
  * License: GPL v3 or later - http://www.gnu.org/licenses/gpl-3.0.html
13
  * Text Domain: woosidebars
14
  * Domain Path: /lang
@@ -30,5 +30,5 @@ if ( class_exists( 'Woocommerce' ) ) {
30
 
31
  global $woosidebars;
32
  $woosidebars = new Woo_Sidebars( __FILE__ );
33
- $woosidebars->version = '1.4.5';
34
  $woosidebars->init();
5
  * Description: Replace widget areas in your theme for specific pages, archives and other sections of WordPress.
6
  * Author: WooCommerce
7
  * Author URI: http://woocommerce.com/
8
+ * Version: 1.4.6
9
+ * Stable tag: 1.4.6
10
  * Requires at least: 4.1
11
+ * Tested up to: 5.8.3
12
  * License: GPL v3 or later - http://www.gnu.org/licenses/gpl-3.0.html
13
  * Text Domain: woosidebars
14
  * Domain Path: /lang
30
 
31
  global $woosidebars;
32
  $woosidebars = new Woo_Sidebars( __FILE__ );
33
+ $woosidebars->version = '1.4.6';
34
  $woosidebars->init();