[wp-trac] [WordPress Trac] #12606: register_sidebars(n) fails to register multiple sidebars when 'id' argument defined

WordPress Trac noreply at wordpress.org
Tue Jun 24 09:10:48 UTC 2014


#12606: register_sidebars(n) fails to register multiple sidebars when 'id' argument
defined
---------------------------------------+---------------------
 Reporter:  minusfive                  |       Owner:  azaozz
     Type:  defect (bug)               |      Status:  closed
 Priority:  normal                     |   Milestone:  3.0
Component:  Widgets                    |     Version:  2.9.2
 Severity:  major                      |  Resolution:  fixed
 Keywords:  widgets register_sidebars  |     Focuses:
---------------------------------------+---------------------
Changes (by mcleod@…):

 * keywords:  widgets, register_sidebars => widgets register_sidebars


Comment:

 The documentation was wrong. The point is, 'id' needs to be just a simple
 string, like 'sidebar' or 'mybar', not 'sidebar-$i'  nor 'sidebar-%d'. The
 number will be appended automatically to the id, as stated in the textual
 description below the example cited in this ticket.

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


More information about the wp-trac mailing list