Version Description
Fixes an error notice on the homepage, caused by the tag check logic.
Download this release
Release Info
Developer | mattyza |
Plugin | WooSidebars |
Version | 1.4.1 |
Comparing to | |
See all releases |
Code changes from version 1.4.0 to 1.4.1
- changelog.txt +4 -0
- classes/class-woo-conditions.php +2 -2
- readme.txt +9 -2
- woosidebars.php +3 -3
changelog.txt
CHANGED
@@ -1,5 +1,9 @@
|
|
1 |
*** WooSidebars Changelog ***
|
2 |
|
|
|
|
|
|
|
|
|
3 |
2015.02.17 - version 1.4.0
|
4 |
* New - Adds a condition to change the widget area for all posts tagged with a selected tag.
|
5 |
/classes/class-woo-conditions.php
|
1 |
*** WooSidebars Changelog ***
|
2 |
|
3 |
+
2015.02.17 - version 1.4.1
|
4 |
+
* Fix - Fixes an error notice on the homepage, caused by the tag check logic.
|
5 |
+
/classes/class-woo-conditions.php
|
6 |
+
|
7 |
2015.02.17 - version 1.4.0
|
8 |
* New - Adds a condition to change the widget area for all posts tagged with a selected tag.
|
9 |
/classes/class-woo-conditions.php
|
classes/class-woo-conditions.php
CHANGED
@@ -383,7 +383,7 @@ class Woo_Conditions {
|
|
383 |
// In Category conditions.
|
384 |
$categories = get_the_category( get_the_ID() );
|
385 |
|
386 |
-
if ( ! is_wp_error( $categories ) && ( 0 < count( $categories ) ) ) {
|
387 |
foreach ( $categories as $k => $v ) {
|
388 |
$this->conditions[] = 'in-term-' . $v->term_id;
|
389 |
}
|
@@ -392,7 +392,7 @@ class Woo_Conditions {
|
|
392 |
// Has Tag conditions.
|
393 |
$tags = get_the_tags( get_the_ID() );
|
394 |
|
395 |
-
if ( ! is_wp_error( $tags ) && ( 0 < count( $tags ) ) ) {
|
396 |
foreach ( $tags as $k => $v ) {
|
397 |
$this->conditions[] = 'has-term-' . $v->term_id;
|
398 |
}
|
383 |
// In Category conditions.
|
384 |
$categories = get_the_category( get_the_ID() );
|
385 |
|
386 |
+
if ( is_array( $categories ) && ! is_wp_error( $categories ) && ( 0 < count( $categories ) ) ) {
|
387 |
foreach ( $categories as $k => $v ) {
|
388 |
$this->conditions[] = 'in-term-' . $v->term_id;
|
389 |
}
|
392 |
// Has Tag conditions.
|
393 |
$tags = get_the_tags( get_the_ID() );
|
394 |
|
395 |
+
if ( is_array( $tags ) && ! is_wp_error( $tags ) && ( 0 < count( $tags ) ) ) {
|
396 |
foreach ( $tags as $k => $v ) {
|
397 |
$this->conditions[] = 'has-term-' . $v->term_id;
|
398 |
}
|
readme.txt
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
Contributors: woothemes, mattyza
|
3 |
Tags: widgets, sidebars, widget-areas
|
4 |
Requires at least: 3.3
|
5 |
-
Tested up to:
|
6 |
-
Stable tag: 1.4.
|
7 |
License: GPLv3 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
9 |
|
@@ -71,6 +71,9 @@ Looking to contribute code to this plugin? [Fork the repository over at GitHub](
|
|
71 |
|
72 |
== Upgrade Notice ==
|
73 |
|
|
|
|
|
|
|
74 |
= 1.4.0 =
|
75 |
WordPress 3.8 compatibility.
|
76 |
Adds "posts tagged with" condition.
|
@@ -92,6 +95,10 @@ Moved to WordPress.org. Woo! Added scope to methods and properties where missing
|
|
92 |
|
93 |
== Changelog ==
|
94 |
|
|
|
|
|
|
|
|
|
95 |
= 1.4.0 =
|
96 |
* 2015-02-17
|
97 |
* WordPress 3.8 compatibility.
|
2 |
Contributors: woothemes, mattyza
|
3 |
Tags: widgets, sidebars, widget-areas
|
4 |
Requires at least: 3.3
|
5 |
+
Tested up to: 4.1.0
|
6 |
+
Stable tag: 1.4.1
|
7 |
License: GPLv3 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
9 |
|
71 |
|
72 |
== Upgrade Notice ==
|
73 |
|
74 |
+
= 1.4.1 =
|
75 |
+
Fixes an error notice on the homepage, caused by the tag check logic.
|
76 |
+
|
77 |
= 1.4.0 =
|
78 |
WordPress 3.8 compatibility.
|
79 |
Adds "posts tagged with" condition.
|
95 |
|
96 |
== Changelog ==
|
97 |
|
98 |
+
= 1.4.1 =
|
99 |
+
* 2015-02-17
|
100 |
+
Fixes an error notice on the homepage, caused by the tag check logic.
|
101 |
+
|
102 |
= 1.4.0 =
|
103 |
* 2015-02-17
|
104 |
* WordPress 3.8 compatibility.
|
woosidebars.php
CHANGED
@@ -5,8 +5,8 @@
|
|
5 |
* Description: Replace widget areas in your theme for specific pages, archives and other sections of WordPress.
|
6 |
* Author: WooThemes
|
7 |
* Author URI: http://woothemes.com/
|
8 |
-
* Version: 1.4.
|
9 |
-
* Stable tag: 1.4.
|
10 |
* License: GPL v2 - http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
11 |
*/
|
12 |
|
@@ -22,6 +22,6 @@
|
|
22 |
|
23 |
global $woosidebars;
|
24 |
$woosidebars = new Woo_Sidebars( __FILE__ );
|
25 |
-
$woosidebars->version = '1.4.
|
26 |
$woosidebars->init();
|
27 |
?>
|
5 |
* Description: Replace widget areas in your theme for specific pages, archives and other sections of WordPress.
|
6 |
* Author: WooThemes
|
7 |
* Author URI: http://woothemes.com/
|
8 |
+
* Version: 1.4.1
|
9 |
+
* Stable tag: 1.4.1
|
10 |
* License: GPL v2 - http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
11 |
*/
|
12 |
|
22 |
|
23 |
global $woosidebars;
|
24 |
$woosidebars = new Woo_Sidebars( __FILE__ );
|
25 |
+
$woosidebars->version = '1.4.1';
|
26 |
$woosidebars->init();
|
27 |
?>
|