Version Description
(April 24, 2020) =
- Bugfix: better support for URL rules with query parameters.
Download this release
Release Info
Developer | kasparsd |
Plugin | Widget Context |
Version | 1.3.1 |
Comparing to | |
See all releases |
Code changes from version 1.3.0 to 1.3.1
- readme.txt +5 -1
- src/UriRules.php +2 -1
- widget-context.php +1 -1
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Contributors: kasparsd, jamescollins
|
|
4 |
Tags: widget, widgets, widget context, context, logic, widget logic, visibility, widget visibility
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 5.4
|
7 |
-
Stable tag: 1.3.
|
8 |
License: GPLv2 or later
|
9 |
Requires PHP: 5.6
|
10 |
Donate link: https://widgetcontext.com/pro
|
@@ -65,6 +65,10 @@ Specify URLs to ignore even if they're matched by any of the other context rules
|
|
65 |
|
66 |
== Changelog ==
|
67 |
|
|
|
|
|
|
|
|
|
68 |
= 1.3.0 (April 23, 2020) =
|
69 |
|
70 |
- Introduce the long-awaited "Exclude by URL" feature to prevent certain URLs from showing or hiding a widget when it's matched by any other visibility rule.
|
4 |
Tags: widget, widgets, widget context, context, logic, widget logic, visibility, widget visibility
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 5.4
|
7 |
+
Stable tag: 1.3.1
|
8 |
License: GPLv2 or later
|
9 |
Requires PHP: 5.6
|
10 |
Donate link: https://widgetcontext.com/pro
|
65 |
|
66 |
== Changelog ==
|
67 |
|
68 |
+
= 1.3.1 (April 24, 2020) =
|
69 |
+
|
70 |
+
- Bugfix: better support for URL rules with query parameters.
|
71 |
+
|
72 |
= 1.3.0 (April 23, 2020) =
|
73 |
|
74 |
- Introduce the long-awaited "Exclude by URL" feature to prevent certain URLs from showing or hiding a widget when it's matched by any other visibility rule.
|
src/UriRules.php
CHANGED
@@ -39,7 +39,8 @@ class UriRules {
|
|
39 |
*/
|
40 |
public function has_rules_with_query_strings() {
|
41 |
foreach ( $this->rules as $rule ) {
|
42 |
-
|
|
|
43 |
return true;
|
44 |
}
|
45 |
}
|
39 |
*/
|
40 |
public function has_rules_with_query_strings() {
|
41 |
foreach ( $this->rules as $rule ) {
|
42 |
+
// Assume that only query parameters can contain equal signs.
|
43 |
+
if ( false !== strpos( $rule, '=' ) ) {
|
44 |
return true;
|
45 |
}
|
46 |
}
|
widget-context.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Widget Context
|
4 |
* Plugin URI: https://widgetcontext.com
|
5 |
* Description: Show or hide widgets depending on the section of the site that is being viewed. Configure the widget visibility rules under the individual widget settings.
|
6 |
-
* Version: 1.3.
|
7 |
* Author: Kaspars Dambis
|
8 |
* Author URI: https://widgetcontext.com
|
9 |
* Text Domain: widget-context
|
3 |
* Plugin Name: Widget Context
|
4 |
* Plugin URI: https://widgetcontext.com
|
5 |
* Description: Show or hide widgets depending on the section of the site that is being viewed. Configure the widget visibility rules under the individual widget settings.
|
6 |
+
* Version: 1.3.1
|
7 |
* Author: Kaspars Dambis
|
8 |
* Author URI: https://widgetcontext.com
|
9 |
* Text Domain: widget-context
|