[wp-trac] [WordPress Trac] #18480: get_sidebar should be able to accept an array of names as parameter.

WordPress Trac wp-trac at lists.automattic.com
Thu Aug 18 22:29:12 UTC 2011


#18480: get_sidebar should be able to accept an array of names as parameter.
-------------------------+-----------------------------
 Reporter:  gxxaxx       |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Template     |    Version:  3.2.1
 Severity:  normal       |   Keywords:
-------------------------+-----------------------------
 get_sidebar uses load_template to do the work of template loading.
 load_template will accept an array of template names for loading.
 load_template will then load the first existing template from that array.

 Seems like get_sidebar should also accept an array of names that can be
 searched in declining order.

 This would allow a theme to specify a first choice, second choice, etc.
 for the sidebar.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/18480>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list