Version Description
Bug fix to ensure multiple conditions save correctly.
Download this release
Release Info
Developer | mattyza |
Plugin | WooSidebars |
Version | 1.3.1 |
Comparing to | |
See all releases |
Code changes from version 1.3.0 to 1.3.1
- changelog.txt +3 -0
- classes/class-woo-conditions.php +2 -2
- readme.txt +8 -1
- woosidebars.php +3 -3
changelog.txt
CHANGED
@@ -1,5 +1,8 @@
|
|
1 |
*** WooSidebars Changelog ***
|
2 |
|
|
|
|
|
|
|
3 |
2013.08.12 - version 1.3.0
|
4 |
* /assets/css/admin.css - Replace all instances of #woo-conditions with #woosidebars-conditions to match the renamed meta box. Add basic jQueryUI styling reset to prevent visual inconsistency when jQueryUI is loaded via a third-party plugin.
|
5 |
* /assets/js/admin.js - Adjust the JavaScript logic to use the new "woosidebars-conditions" selector instead of "woo-conditions" for toggling advanced options on and off.
|
1 |
*** WooSidebars Changelog ***
|
2 |
|
3 |
+
2013.08.13 - version 1.3.1
|
4 |
+
* /classes/class-woo-conditions.php - Re-introduce add_post_meta() instead of update_post_meta() when saving conditions. Using update_post_meta() prevents multiple conditions from being saved.
|
5 |
+
|
6 |
2013.08.12 - version 1.3.0
|
7 |
* /assets/css/admin.css - Replace all instances of #woo-conditions with #woosidebars-conditions to match the renamed meta box. Add basic jQueryUI styling reset to prevent visual inconsistency when jQueryUI is loaded via a third-party plugin.
|
8 |
* /assets/js/admin.js - Adjust the JavaScript logic to use the new "woosidebars-conditions" selector instead of "woo-conditions" for toggling advanced options on and off.
|
classes/class-woo-conditions.php
CHANGED
@@ -670,11 +670,11 @@ class Woo_Conditions {
|
|
670 |
}
|
671 |
}
|
672 |
|
673 |
-
if ( isset( $_POST['conditions'] ) && ( count( $_POST['conditions'] )
|
674 |
delete_post_meta( $post_id, '_condition' );
|
675 |
|
676 |
foreach ( $_POST['conditions'] as $k => $v ) {
|
677 |
-
|
678 |
}
|
679 |
}
|
680 |
} // End meta_box_save()
|
670 |
}
|
671 |
}
|
672 |
|
673 |
+
if ( isset( $_POST['conditions'] ) && ( 0 < count( $_POST['conditions'] ) ) ) {
|
674 |
delete_post_meta( $post_id, '_condition' );
|
675 |
|
676 |
foreach ( $_POST['conditions'] as $k => $v ) {
|
677 |
+
add_post_meta( $post_id, '_condition', $v, false );
|
678 |
}
|
679 |
}
|
680 |
} // End meta_box_save()
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: woothemes, mattyza
|
|
3 |
Tags: widgets, sidebars, widget-areas
|
4 |
Requires at least: 3.3
|
5 |
Tested up to: 3.6.0
|
6 |
-
Stable tag: 1.3.
|
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.3.0 =
|
75 |
Optimisation update.
|
76 |
|
@@ -85,6 +88,10 @@ Moved to WordPress.org. Woo! Added scope to methods and properties where missing
|
|
85 |
|
86 |
== Changelog ==
|
87 |
|
|
|
|
|
|
|
|
|
88 |
= 1.3.0 =
|
89 |
* 2013-08-12
|
90 |
* Introduces woosidebars_upper_limit filter, used on all database queries, to control scaling.
|
3 |
Tags: widgets, sidebars, widget-areas
|
4 |
Requires at least: 3.3
|
5 |
Tested up to: 3.6.0
|
6 |
+
Stable tag: 1.3.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.3.1 =
|
75 |
+
Bug fix to ensure multiple conditions save correctly.
|
76 |
+
|
77 |
= 1.3.0 =
|
78 |
Optimisation update.
|
79 |
|
88 |
|
89 |
== Changelog ==
|
90 |
|
91 |
+
= 1.3.1 =
|
92 |
+
* 2013-08-13
|
93 |
+
* Bug fix to ensure multiple conditions save correctly.
|
94 |
+
|
95 |
= 1.3.0 =
|
96 |
* 2013-08-12
|
97 |
* Introduces woosidebars_upper_limit filter, used on all database queries, to control scaling.
|
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.3.
|
9 |
-
* Stable tag: 1.3.
|
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.3.
|
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.3.1
|
9 |
+
* Stable tag: 1.3.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.3.1';
|
26 |
$woosidebars->init();
|
27 |
?>
|