[wp-trac] [WordPress Trac] #40098: Prevent same sidebar from outputting twice

WordPress Trac noreply at wordpress.org
Fri Mar 10 21:38:35 UTC 2017


#40098: Prevent same sidebar from outputting twice
-------------------------+------------------------------
 Reporter:  nathanrice   |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Widgets      |     Version:  trunk
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:
-------------------------+------------------------------

Comment (by westonruter):

 It's noted on that ticket:

 > this is not valid to have the same id two or more times

 I believe the context here is HTML element IDs. Note that while IDs are
 _supposed_ to be unique in document, if you have the same ID used more
 than once it doesn't necessarily break anything, right?

 The farthest I'd recommend going with this is to complain with something
 like `_doing_it_wrong()` if the same ID is used more than once when
 calling `dynamic_sidebar()`.

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


More information about the wp-trac mailing list