Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ public function output_admin_inline_script() {
operators.does_not_contain = 'does not contain';
return operators;
} );

// Override the default GF function to add our custom operator.
function ruleNeedsTextValue( rule ) {
return ['does_not_contain','contains', 'starts_with', 'ends_with', '<', '>' ].indexOf ( rule.operator ) !== -1;
}
</script>
<?php
}
Expand Down
Loading