[wp-trac] [WordPress Trac] #42682: Allow customize notifications to be auto dismissed after a delay

WordPress Trac noreply at wordpress.org
Thu Nov 23 19:28:52 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:
-------------------------+-------------------------

Comment (by nikeo):

 Replying to [comment:3 westonruter]:

 Ah yes that's right, my code included uncessary steps :)

 Ok. Thanks for your quick feedback.

 > 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:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list