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

WordPress Trac noreply at wordpress.org
Tue Nov 17 19:55:48 UTC 2020


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

Comment (by SergeyBiryukov):

 Replying to [comment:31 audrasjb]:
 > `19709.4.diff` adds a prefix to this ID.

 The `id` argument is already [source:tags/5.5.3/src/wp-
 includes/widgets.php?marks=257#L247 sidebar-$i by default], so it seems
 like this would now be `sidebar-sidebar-$i` :)

 I'm not sure duplicate IDs are possible here. Could we have an example of
 when that's the case?

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


More information about the wp-trac mailing list