[wp-trac] [WordPress Trac] #25070: Add filter to use do_accordion_sections for post metaboxes

WordPress Trac noreply at wordpress.org
Thu Aug 29 14:35:19 UTC 2013


#25070: Add filter to use do_accordion_sections for post metaboxes
-----------------------------------+------------------------------
 Reporter:  MZAWeb                 |       Owner:
     Type:  enhancement            |      Status:  new
 Priority:  normal                 |   Milestone:  Awaiting Review
Component:  Administration         |     Version:  3.6
 Severity:  normal                 |  Resolution:
 Keywords:  2nd-opinion has-patch  |
-----------------------------------+------------------------------

Comment (by DrewAPicture):

 +1 for the idea, -1 for the approach in [attachment:25070.2.diff]

 I think we first need to make a decision about whether to DRY up the
 repeated code between `do_meta_boxes()` and `do_accordion_sections()`,
 then we can look at adding a filter or a flag or something to make this
 possible.

 In [comment:44:ticket:23450] and [attachment:23450.14.diff:ticket:23450] I
 suggested an approach to combining the two functions, though it was
 definitely too late in the cycle to consider a refactor as @nacin pointed
 out a few comments later.

 Related: #23450

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


More information about the wp-trac mailing list