Skip to content

Commit a025aa5

Browse files
author
Matthew Harvey
committed
Change not "trick" on lines 945-949 to use not_ instead of ! so not_ is not stripped out when saving settings in the dashboard.
1 parent 9ae95cc commit a025aa5

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
@@ -943,8 +943,8 @@ public function get_matching_ad_code( $tag_id ) {
943943
}
944944

945945
// Special trick: include '!' in front of the function name to reverse the result
946-
if ( 0 === strpos( $cond_func, '!' ) ) {
947-
$cond_func = ltrim( $cond_func, '!' );
946+
if ( 4 === strpos( $cond_func, 'not_' ) ) {
947+
$cond_func = ltrim( $cond_func, 'not_' );
948948
$cond_result = false;
949949
}
950950

0 commit comments

Comments
 (0)