Version Description
Be sure to deactivate Dynamic Widgets Plugin before installing the new version following steps 1 and 2 in the installation procedure. After the install you can reactivate the plugin.
Download this release
Release Info
Developer | qurl |
Plugin | Dynamic Widgets |
Version | 1.3.4 |
Comparing to | |
See all releases |
Code changes from version 1.3.3 to 1.3.4
- dynamic-widgets.php +3 -3
- dynwid_admin_save.php +6 -6
- readme.txt +5 -1
dynamic-widgets.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Plugin URI: http://www.qurl.nl/dynamic-widgets/
|
5 |
* Description: Dynamic Widgets gives you more control over your widgets. It lets you dynamicly place widgets on pages by excluding or including rules by roles, dates, for the homepage, single posts, pages, authors, categories, archives, error page, search page and custom post types.
|
6 |
* Author: Jacco
|
7 |
-
* Version: 1.3.
|
8 |
* Author URI: http://www.qurl.nl/
|
9 |
* Tags: widget, widgets, dynamic, sidebar, custom, rules, admin, conditional tags
|
10 |
*
|
@@ -15,7 +15,7 @@
|
|
15 |
*
|
16 |
* Released under the GPL v.2, http://www.gnu.org/copyleft/gpl.html
|
17 |
*
|
18 |
-
* @version $Id: dynamic-widgets.php
|
19 |
*/
|
20 |
|
21 |
/*
|
@@ -30,7 +30,7 @@
|
|
30 |
define('DW_DB_TABLE', 'dynamic_widgets');
|
31 |
define('DW_LIST_LIMIT', 20);
|
32 |
define('DW_LIST_STYLE', 'style="overflow:auto;height:240px;"');
|
33 |
-
define('DW_VERSION', '1.3.
|
34 |
define('DW_VERSION_URL_CHECK', 'http://www.qurl.nl/wp-content/uploads/php/dw_version.php?v=' . DW_VERSION . '&n=');
|
35 |
define('DW_WPML_API', '/inc/wpml-api.php'); // WPML Plugin support - API file relative to ICL_PLUGIN_PATH
|
36 |
define('DW_WPML_ICON', 'img/wpml_icon.png'); // WPML Plugin support - WPML icon
|
4 |
* Plugin URI: http://www.qurl.nl/dynamic-widgets/
|
5 |
* Description: Dynamic Widgets gives you more control over your widgets. It lets you dynamicly place widgets on pages by excluding or including rules by roles, dates, for the homepage, single posts, pages, authors, categories, archives, error page, search page and custom post types.
|
6 |
* Author: Jacco
|
7 |
+
* Version: 1.3.4
|
8 |
* Author URI: http://www.qurl.nl/
|
9 |
* Tags: widget, widgets, dynamic, sidebar, custom, rules, admin, conditional tags
|
10 |
*
|
15 |
*
|
16 |
* Released under the GPL v.2, http://www.gnu.org/copyleft/gpl.html
|
17 |
*
|
18 |
+
* @version $Id: dynamic-widgets.php 265999 2010-07-22 17:27:04Z qurl $
|
19 |
*/
|
20 |
|
21 |
/*
|
30 |
define('DW_DB_TABLE', 'dynamic_widgets');
|
31 |
define('DW_LIST_LIMIT', 20);
|
32 |
define('DW_LIST_STYLE', 'style="overflow:auto;height:240px;"');
|
33 |
+
define('DW_VERSION', '1.3.4');
|
34 |
define('DW_VERSION_URL_CHECK', 'http://www.qurl.nl/wp-content/uploads/php/dw_version.php?v=' . DW_VERSION . '&n=');
|
35 |
define('DW_WPML_API', '/inc/wpml-api.php'); // WPML Plugin support - API file relative to ICL_PLUGIN_PATH
|
36 |
define('DW_WPML_ICON', 'img/wpml_icon.png'); // WPML Plugin support - WPML icon
|
dynwid_admin_save.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/**
|
3 |
* dynwid_admin_save.php - Saving options to the database
|
4 |
*
|
5 |
-
* @version $Id: dynwid_admin_save.php
|
6 |
*/
|
7 |
|
8 |
// Security - nonce
|
@@ -19,7 +19,7 @@
|
|
19 |
$date_start = trim($_POST['date_start']);
|
20 |
$date_end = trim($_POST['date_end']);
|
21 |
|
22 |
-
if (!
|
23 |
wp_redirect( get_option('siteurl') . $_SERVER['REQUEST_URI'] . '&work=none' );
|
24 |
die();
|
25 |
}
|
@@ -76,7 +76,7 @@
|
|
76 |
}
|
77 |
|
78 |
// Custom Types (WP >= 3.0)
|
79 |
-
if ( version_compare($GLOBALS['wp_version'], '3.0', '>=') ) {
|
80 |
if (! $work ) {
|
81 |
foreach ( $_POST['post_types'] as $type ) {
|
82 |
if ( $_POST[$type] == 'yes' ) {
|
@@ -113,10 +113,10 @@
|
|
113 |
// Date
|
114 |
if ( $_POST['date'] == 'no' ) {
|
115 |
$dates = array();
|
116 |
-
if (
|
117 |
$dates['date_start'] = $date_start;
|
118 |
}
|
119 |
-
if (
|
120 |
$dates['date_end'] = $date_end;
|
121 |
}
|
122 |
|
@@ -199,7 +199,7 @@
|
|
199 |
}
|
200 |
|
201 |
// Custom Types (WP >= 3.0)
|
202 |
-
if ( version_compare($GLOBALS['wp_version'], '3.0', '>=') ) {
|
203 |
foreach ( $_POST['post_types'] as $type ) {
|
204 |
$act_field = $type . '_act';
|
205 |
if ( count($_POST[$act_field]) > 0 ) {
|
2 |
/**
|
3 |
* dynwid_admin_save.php - Saving options to the database
|
4 |
*
|
5 |
+
* @version $Id: dynwid_admin_save.php 266059 2010-07-22 19:46:23Z qurl $
|
6 |
*/
|
7 |
|
8 |
// Security - nonce
|
19 |
$date_start = trim($_POST['date_start']);
|
20 |
$date_end = trim($_POST['date_end']);
|
21 |
|
22 |
+
if (! preg_match('/^[0-9]{4}-[0-9]{1,2}-[0-9]{1,2}$/', $date_start) && ! preg_match('/^[0-9]{4}-[0-9]{1,2}-[0-9]{1,2}$/', $date_end) ) {
|
23 |
wp_redirect( get_option('siteurl') . $_SERVER['REQUEST_URI'] . '&work=none' );
|
24 |
die();
|
25 |
}
|
76 |
}
|
77 |
|
78 |
// Custom Types (WP >= 3.0)
|
79 |
+
if ( version_compare($GLOBALS['wp_version'], '3.0', '>=') && isset($_POST['post_types']) ) {
|
80 |
if (! $work ) {
|
81 |
foreach ( $_POST['post_types'] as $type ) {
|
82 |
if ( $_POST[$type] == 'yes' ) {
|
113 |
// Date
|
114 |
if ( $_POST['date'] == 'no' ) {
|
115 |
$dates = array();
|
116 |
+
if ( preg_match('/^[0-9]{4}-[0-9]{1,2}-[0-9]{1,2}$/', $date_start) ) {
|
117 |
$dates['date_start'] = $date_start;
|
118 |
}
|
119 |
+
if ( preg_match('/^[0-9]{4}-[0-9]{1,2}-[0-9]{1,2}$/', $date_end) ) {
|
120 |
$dates['date_end'] = $date_end;
|
121 |
}
|
122 |
|
199 |
}
|
200 |
|
201 |
// Custom Types (WP >= 3.0)
|
202 |
+
if ( version_compare($GLOBALS['wp_version'], '3.0', '>=') && isset($_POST['post_types']) ) {
|
203 |
foreach ( $_POST['post_types'] as $type ) {
|
204 |
$act_field = $type . '_act';
|
205 |
if ( count($_POST[$act_field]) > 0 ) {
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link:
|
|
4 |
Tags: widget, widgets, dynamic, sidebar, custom, rules, admin, conditional tags
|
5 |
Requires at least: 2.9.1
|
6 |
Tested up to: 3.0
|
7 |
-
Stable tag: 1.3.
|
8 |
|
9 |
Dynamic Widgets gives you more control over your widgets. It lets you dynamicly place widgets on WordPress pages.
|
10 |
|
@@ -88,6 +88,10 @@ Please file a [bugreport](http://www.qurl.nl/bugreport/). Please note the proced
|
|
88 |
|
89 |
== Changelog ==
|
90 |
|
|
|
|
|
|
|
|
|
91 |
= Version 1.3.3 =
|
92 |
|
93 |
* Added Custom Post Types support for WordPress 3.0.
|
4 |
Tags: widget, widgets, dynamic, sidebar, custom, rules, admin, conditional tags
|
5 |
Requires at least: 2.9.1
|
6 |
Tested up to: 3.0
|
7 |
+
Stable tag: 1.3.4
|
8 |
|
9 |
Dynamic Widgets gives you more control over your widgets. It lets you dynamicly place widgets on WordPress pages.
|
10 |
|
88 |
|
89 |
== Changelog ==
|
90 |
|
91 |
+
= Version 1.3.4 =
|
92 |
+
|
93 |
+
* Bugfix for minor flaw "Invalid argument supplied for foreach() in dynwid_admin_save.php on line 203"
|
94 |
+
|
95 |
= Version 1.3.3 =
|
96 |
|
97 |
* Added Custom Post Types support for WordPress 3.0.
|