Skip to content

Commit c49a169

Browse files
author
Matthew Harvey
committed
Fix strpos conditional.
1 parent a025aa5 commit c49a169

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ad-code-manager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -943,7 +943,7 @@ 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 ( 4 === strpos( $cond_func, 'not_' ) ) {
946+
if ( 0 === strpos( $cond_func, 'not_' ) ) {
947947
$cond_func = ltrim( $cond_func, 'not_' );
948948
$cond_result = false;
949949
}

0 commit comments

Comments
 (0)