[wp-trac] [WordPress Trac] #19709: Add 'before_sidebar' and 'after_sidebar' attributes to register_sidebar()

WordPress Trac noreply at wordpress.org
Mon Oct 19 15:42:37 UTC 2020


#19709: Add 'before_sidebar' and 'after_sidebar' attributes to register_sidebar()
-------------------------------------------+-----------------------
 Reporter:  dgwyer                         |       Owner:  audrasjb
     Type:  task (blessed)                 |      Status:  reopened
 Priority:  normal                         |   Milestone:  5.6
Component:  Widgets                        |     Version:  2.2
 Severity:  normal                         |  Resolution:
 Keywords:  good-first-bug has-unit-tests  |     Focuses:
-------------------------------------------+-----------------------
Changes (by SergeyBiryukov):

 * keywords:  has-patch good-first-bug has-unit-tests commit => good-first-
     bug has-unit-tests
 * status:  closed => reopened
 * resolution:  fixed =>
 * type:  enhancement => task (blessed)


Comment:

 Replying to [comment:5 flixos90]:
 > `before_sidebar` can be a string like `<div id="%1$s" class="%2$s">` and
 will receive sidebar ID and class.

 Didn't want to block the commit, but this `sprintf()` usage in [49203]
 should ideally be documented.

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


More information about the wp-trac mailing list