Skip to content

Commit 731d6f0

Browse files
committed
~ Code improvements.
1 parent a68645d commit 731d6f0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

gp-limit-dates/gpld-conditional-limits.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,7 @@ public function init() {
3131
add_action( 'gform_field_validation', array( $this, 'validate' ), 11, 4 );
3232

3333
// Enables date limits for the form field, allowing the `gp-limit-dates` script to be enqueued.
34-
add_filter( "gpld_has_limit_dates_enabled_{$this->_args['form_id']}_{$this->_args['field_id']}", function ( $result, $field ) {
35-
return true;
36-
}, 10, 2 );
34+
add_filter( "gpld_has_limit_dates_enabled_{$this->_args['form_id']}_{$this->_args['field_id']}", '__return_true', 10, 2 );
3735
}
3836

3937
public function enqueue_form_scripts( $form ) {

0 commit comments

Comments
 (0)