[wp-trac] [WordPress Trac] #23449: Refactor customizer accordion to work anywhere in admin

WordPress Trac noreply at wordpress.org
Tue Apr 2 01:23:58 UTC 2013


#23449: Refactor customizer accordion to work anywhere in admin
---------------------------------+--------------------------
 Reporter:  lessbloat            |       Owner:  markjaquith
     Type:  defect (bug)         |      Status:  reopened
 Priority:  normal               |   Milestone:  3.6
Component:  Appearance           |     Version:
 Severity:  normal               |  Resolution:
 Keywords:  3.6-menus has-patch  |
---------------------------------+--------------------------

Comment (by nacin):

 I can't quite tell how much code is duplicated between
 do_accordion_sections() and do_meta_boxes(), but it seems like quite a
 bit. (And this code is, shall we say, unique, so keeping it DRY has some
 importance.) Could we just add an $args array to do_meta_boxes() for
 'accordion' => true?

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/23449#comment:23>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list