Widget Logic - Version 5.7.2

Version Description

Removed conflicts with outdated WP versions.

Download this release

Release Info

Developer wpchefgadget
Plugin Icon 128x128 Widget Logic
Version 5.7.2
Comparing to
See all releases

Code changes from version 5.7.1 to 5.7.2

Files changed (2) hide show
  1. readme.txt +4 -1
  2. widget_logic.php +4 -3
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.justgiving.com/widgetlogic_cancerresearchuk
4
  Tags: widget, admin, conditional tags, filter, context
5
  Requires at least: 3.0
6
  Tested up to: 4.7.2
7
- Stable tag: 5.7.1
8
  License: GPLv2 or later
9
 
10
  Widget Logic lets you control on which pages widgets appear using WP's conditional tags. It also adds a 'widget_content' filter.
@@ -119,6 +119,9 @@ Tighten up your definitions with PHPs 'logical AND' &&, for example:
119
 
120
  == Changelog ==
121
 
 
 
 
122
  = 5.7.1 =
123
  Fixed the settings form not being saved settings under some circumstances.
124
 
4
  Tags: widget, admin, conditional tags, filter, context
5
  Requires at least: 3.0
6
  Tested up to: 4.7.2
7
+ Stable tag: 5.7.2
8
  License: GPLv2 or later
9
 
10
  Widget Logic lets you control on which pages widgets appear using WP's conditional tags. It also adds a 'widget_content' filter.
119
 
120
  == Changelog ==
121
 
122
+ = 5.7.2 =
123
+ Removed conflicts with outdated WP versions.
124
+
125
  = 5.7.1 =
126
  Fixed the settings form not being saved settings under some circumstances.
127
 
widget_logic.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Widget Logic
4
  Plugin URI: http://wordpress.org/extend/plugins/widget-logic/
5
  Description: Control widgets with WP's conditional tags is_home etc
6
- Version: 5.7.1
7
  Author: wpchefgadget, alanft
8
 
9
  Text Domain: widget-logic
@@ -46,8 +46,9 @@ function widget_logic_init()
46
  {
47
  if ( get_option('widget_logic_version') != WIDGET_LOGIC_VERSION )
48
  widget_logic_activate();
49
-
50
- if ( !file_exists(WP_PLUGIN_DIR.'/limit-login-attempts-reloaded') && current_user_can('install_plugins') )
 
51
  {
52
  $alert = (array)get_option( 'wpchefgadget_alert', array() );
53
  if ( empty( $alert['limit-login-attempts'] ) )
3
  Plugin Name: Widget Logic
4
  Plugin URI: http://wordpress.org/extend/plugins/widget-logic/
5
  Description: Control widgets with WP's conditional tags is_home etc
6
+ Version: 5.7.2
7
  Author: wpchefgadget, alanft
8
 
9
  Text Domain: widget-logic
46
  {
47
  if ( get_option('widget_logic_version') != WIDGET_LOGIC_VERSION )
48
  widget_logic_activate();
49
+
50
+ global $wp_version;
51
+ if ( version_compare( $wp_version, '4.2', '>=' ) && !file_exists(WP_PLUGIN_DIR.'/limit-login-attempts-reloaded') && current_user_can('install_plugins') )
52
  {
53
  $alert = (array)get_option( 'wpchefgadget_alert', array() );
54
  if ( empty( $alert['limit-login-attempts'] ) )