[wp-trac] [WordPress Trac] #42682: Allow customize notifications to be auto dismissed after a delay
WordPress Trac
noreply at wordpress.org
Thu Nov 23 18:27:43 UTC 2017
#42682: Allow customize notifications to be auto dismissed after a delay
-------------------------+-------------------------
Reporter: nikeo | Owner:
Type: enhancement | Status: closed
Priority: normal | Milestone:
Component: Customize | Version: 4.9
Severity: normal | Resolution: maybelater
Keywords: | Focuses:
-------------------------+-------------------------
Changes (by westonruter):
* keywords: reporter-feedback =>
* status: new => closed
* resolution: => maybelater
* milestone: Awaiting Review =>
Comment:
You can simplify your example removal code quite a bit to just:
{{{#!js
_.delay( function() {
api.notifications.remove( 'widgets_are_sidewide' );
}, 5000 );
}}}
That being the case, I don't think we should add support for “delayed
auto-dismissal” into core since it is so trivial to do with with the
existing API. If we find there are use cases for auto-dismissal in core,
then we can revisit this.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42682#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list