You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/** * Change auto_dismissible to dismissible and set the value to true * * @since 1.8.14 */$default_notice_args = array(
'dismissible' => true,
'dismiss_interval' => 5000,
);
Issue Overview
In the PHP code:
We set values for dismissible as:
And in jQuery, the comparison is done with "auto"
This causes the feature to not work because comparison is done between auto and 1
Expected Behavior
Front end notices should automatically hide if dismissible is set
Current Behavior
Auto dismissible front end notice does not work
Possible Solution
Either set
'dismissible' => auto
OR setjQuery( '.give_notice[data-dismissible="1"]' )
The text was updated successfully, but these errors were encountered: