[wp-trac] [WordPress Trac] #15000: add_meta_box() should accept array of post types

WordPress Trac noreply at wordpress.org
Sat Jun 28 21:19:11 UTC 2014


#15000: add_meta_box() should accept array of post types
--------------------------------------+------------------------------
 Reporter:  coffee2code               |       Owner:
     Type:  enhancement               |      Status:  reopened
 Priority:  normal                    |   Milestone:  Awaiting Review
Component:  Administration            |     Version:  3.0.1
 Severity:  minor                     |  Resolution:
 Keywords:  good-first-bug has-patch  |     Focuses:
--------------------------------------+------------------------------

Comment (by nacin):

 I don't mind the circular reference. However, we also need to think about
 remove_meta_box(), too.

 If you are allowed to pass something to add_meta_box() that actually
 splits into multiple meta boxes due to individual contexts, then remove is
 going to end up needing to be called for each individual context. Or, it
 would need to do the same circular reference.

 I just think this complicates things. As to whether that outweighs the
 syntactical sugar, I'm not sure.

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


More information about the wp-trac mailing list