Skip to content

Commit a140301

Browse files
committed
fixed exclude-all-except filter ignoring IDs
1 parent d2e80ef commit a140301

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

CHANGES.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
### 1.2.4
2+
* Fixed exclude-all-except filter ignoring the IDs.
3+
14
### 1.2.3
25
* In-plugin version checks are now cached for 1 hour.
36

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Tags: text, inserts, adsense, adcodes
55
* Requires at least: 3.5.1, PHP 5.4
66
* Tested up to: 4.3
7-
* Stable tag: 1.2.3
7+
* Stable tag: 1.2.4
88
* License: GPLv2 or later
99
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
1010

public/class-text-inserts.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ private function __construct() {
146146
$ci_ok = in_array( $catid , $cat_ids );
147147
}
148148

149-
$filtering_ok = $pi_ok || $ci_ok;
149+
$filtering_ok = $pi_ok && $ci_ok;
150150
break;
151151
case 3:
152152
// include all except
@@ -232,7 +232,7 @@ private function __construct() {
232232
$ci_ok = in_array( $catid , $cat_ids );
233233
}
234234

235-
$filtering_ok = $pi_ok || $ci_ok;
235+
$filtering_ok = $pi_ok && $ci_ok;
236236
break;
237237
case 3:
238238
// include all except

text-inserts.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* Plugin Name: Text Inserts
1111
* Plugin URI:
1212
* Description: Simplifies ad-code or text insertions by making it possible to add content/hook text inserts via the plugin settings panel.
13-
* Version: 1.2.3
13+
* Version: 1.2.4
1414
* Author: Roosdoring Inc
1515
* Author URI: http://www.authoritysitesecrets.com/
1616
* Text Domain: text-inserts

0 commit comments

Comments
 (0)