[wp-trac] [WordPress Trac] #18787: Let remove_meta_box be selective in terms of priorities

WordPress Trac wp-trac at lists.automattic.com
Mon Sep 26 23:17:40 UTC 2011


#18787: Let remove_meta_box be selective in terms of priorities
-----------------------------+-----------------------------
 Reporter:  mitchoyoshitaka  |      Owner:
     Type:  enhancement      |     Status:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  Administration   |    Version:
 Severity:  trivial          |   Keywords:  has-patch
-----------------------------+-----------------------------
 Right now `remove_meta_box` actually acts as a `ban_meta_box`...
 essentially any meta box with the same id, page, and context will be
 banned from the page, even if (re)added via another `add_meta_box` call
 afterwards. Given that there's no nice `replace_meta_box`, a nice option
 would be to allow `remove_meta_box` to be called with a particular
 priority in mind, in which case we could easily `add_meta_box` with that
 same priority right afterwards and, in practice, replace the meta box.

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


More information about the wp-trac mailing list