Skip to content

Commit ad90e00

Browse files
committed
Merge pull request #83 from harvitronix/fix-not-conditional
Change not "trick" on lines 945-949 to use 'not' instead of '!'
2 parents 8b60ffc + c49a169 commit ad90e00

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ad-code-manager.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -957,8 +957,8 @@ public function get_matching_ad_code( $tag_id ) {
957957
}
958958

959959
// Special trick: include '!' in front of the function name to reverse the result
960-
if ( 0 === strpos( $cond_func, '!' ) ) {
961-
$cond_func = ltrim( $cond_func, '!' );
960+
if ( 0 === strpos( $cond_func, 'not_' ) ) {
961+
$cond_func = ltrim( $cond_func, 'not_' );
962962
$cond_result = false;
963963
}
964964

0 commit comments

Comments
 (0)