Version Description
Download this release
Release Info
Developer | alanft |
Plugin | Widget Logic |
Version | 0.43 |
Comparing to | |
See all releases |
Code changes from version 0.42 to 0.43
- readme.txt +2 -2
- widget_logic.php +3 -2
readme.txt
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
Contributors: alanft
|
3 |
Tags: widget, admin, conditional tags, filter
|
4 |
Requires at least: 2.5
|
5 |
-
Tested up to: 2.
|
6 |
-
Stable tag: 0.
|
7 |
|
8 |
Widget Logic lets you control when widgets appear. Add WP's conditional tags in the normal widget admin. It also adds a 'widget_content' filter.
|
9 |
|
2 |
Contributors: alanft
|
3 |
Tags: widget, admin, conditional tags, filter
|
4 |
Requires at least: 2.5
|
5 |
+
Tested up to: 2.7
|
6 |
+
Stable tag: 0.43
|
7 |
|
8 |
Widget Logic lets you control when widgets appear. Add WP's conditional tags in the normal widget admin. It also adds a 'widget_content' filter.
|
9 |
|
widget_logic.php
CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Widget Logic
|
|
4 |
Plugin URI: http://freakytrigger.co.uk/wordpress-setup/
|
5 |
Description: Control widgets with WP's conditional tags is_home etc
|
6 |
Author: Alan Trewartha
|
7 |
-
Version: 0.
|
8 |
Author URI: http://freakytrigger.co.uk/author/alan/
|
9 |
*/
|
10 |
|
@@ -21,7 +21,8 @@ function widget_logic_expand_control()
|
|
21 |
// if we're just updating the widgets, just read in the widget logic settings - makes this WP2.5+ only i think
|
22 |
if ( 'post' == strtolower($_SERVER['REQUEST_METHOD']) )
|
23 |
{ foreach ( (array) $_POST['widget-id'] as $widget_number => $widget_id )
|
24 |
-
$
|
|
|
25 |
|
26 |
// clean up empty options (in PHP5 use array_intersect_key)
|
27 |
$regd_plus_new=array_merge(array_keys($wp_registered_widgets),array_values((array) $_POST['widget-id']));
|
4 |
Plugin URI: http://freakytrigger.co.uk/wordpress-setup/
|
5 |
Description: Control widgets with WP's conditional tags is_home etc
|
6 |
Author: Alan Trewartha
|
7 |
+
Version: 0.43
|
8 |
Author URI: http://freakytrigger.co.uk/author/alan/
|
9 |
*/
|
10 |
|
21 |
// if we're just updating the widgets, just read in the widget logic settings - makes this WP2.5+ only i think
|
22 |
if ( 'post' == strtolower($_SERVER['REQUEST_METHOD']) )
|
23 |
{ foreach ( (array) $_POST['widget-id'] as $widget_number => $widget_id )
|
24 |
+
if (isset($_POST[$widget_id.'-widget_logic']))
|
25 |
+
$wl_options[$widget_id]=$_POST[$widget_id.'-widget_logic'];
|
26 |
|
27 |
// clean up empty options (in PHP5 use array_intersect_key)
|
28 |
$regd_plus_new=array_merge(array_keys($wp_registered_widgets),array_values((array) $_POST['widget-id']));
|