[wp-trac] [WordPress Trac] #38794: Customize: Allow panels and sections to have notifications just like controls can

WordPress Trac noreply at wordpress.org
Wed Mar 1 18:20:03 UTC 2017


#38794: Customize: Allow panels and sections to have notifications just like
controls can
-------------------------+------------------
 Reporter:  westonruter  |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  4.8
Component:  Customize    |     Version:  4.6
 Severity:  normal       |  Resolution:
 Keywords:  needs-patch  |     Focuses:
-------------------------+------------------
Description changed by westonruter:

Old description:

> In #34893, the ability to show notifications on controls was added. In
> #35210 this is proposed to be extended at a global level to be able to
> show notifications at the root of the customizer. Between these two ends,
> there should also be the ability to show notifications at the panel and
> section level.
>
> The Customize Posts plugin implements notifications for sections which
> could serve as a start for the patch here: https://github.com/xwp/wp-
> customize-posts/blob/0.8.2/js/customize-post-section.js#L825-L942
>
> Once implemented, section notifications should be utilized for the Header
> Media section to show a notification when not previewing a URL that is
> eligible for a header video. See #38778.

New description:

 In #34893, the ability to show notifications on controls was added. In
 #35210 this is proposed to be extended at a global level to be able to
 show notifications at the root of the customizer. Between these two ends,
 there should also be the ability to show notifications at the panel and
 section level.

 The Customize Posts plugin implements notifications for sections which
 could serve as a start for the patch here: https://github.com/xwp/wp-
 customize-posts/blob/0.8.2/js/customize-post-section.js#L825-L942

 Once implemented, section notifications should be utilized for the Header
 Media section to show a notification when not previewing a URL that is
 eligible for a header video. See #38778.

 For more sample code, see:
 * https://github.com/xwp/wp-customize-featured-content-
 demo/blob/8bf4d65/js/featured-items-panel.js#L45
 * https://github.com/xwp/wp-customize-featured-content-
 demo/blob/8bf4d65/js/featured-items-panel.js#L69-L116
 * https://github.com/xwp/wp-customize-featured-content-
 demo/blob/c748adf/php/class-featured-items-customize-panel.php#L47-L63

--

--
Ticket URL: <https://core.trac.wordpress.org/ticket/38794#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list