[wp-trac] [WordPress Trac] #22116: bug in dynamic_sidebar function
WordPress Trac
wp-trac at lists.automattic.com
Mon Oct 8 08:20:28 UTC 2012
#22116: bug in dynamic_sidebar function
-------------------------------+------------------------------
Reporter: alexvorn2 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Widgets | Version: 3.4.2
Severity: major | Resolution:
Keywords: reporter-feedback |
-------------------------------+------------------------------
Changes (by SergeyBiryukov):
* keywords: => reporter-feedback
Comment:
Related: [5474] (for #4258).
Not sure I understand the issue. If I copy Twenty Twelve's main sidebar
under the ID of `sidebar-4`, then `dynamic_sidebar( 'sidebar-4' )`
correctly displays the new sidebar, even if both have the same name ("Main
Sidebar").
If `dynamic_sidebar( 'Main Sidebar' )` is used, then the one that was
registered earlier is displayed, which I guess is the expected result.
The suggested change doesn't seem correct, it would break the ability to
display a sidebar by its name: `dynamic_sidebar( 'Main Sidebar' )`.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/22116#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list