[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:35:56 UTC 2011
#18787: Let remove_meta_box be selective in terms of priorities
-----------------------------+------------------------------
Reporter: mitchoyoshitaka | Owner:
Type: enhancement | Status: closed
Priority: normal | Milestone: Awaiting Review
Component: Administration | Version:
Severity: trivial | Resolution: wontfix
Keywords: has-patch |
-----------------------------+------------------------------
Changes (by mitchoyoshitaka):
* status: new => closed
* resolution: => wontfix
Comment:
Replying to [comment:1 nacin]:
> > 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.
> Isn't that only for priority = core?
Indeed. (Regurgitating the lesson from our quick chat on IRC:) The
solution is for non-core code to never add a meta box with priority
"core," and even if you want to replace a "core" meta_box, you can simply
do so by specifying priority "default" which will get sorted appropriately
via the special case code in `add_meta_box`.
Resolving wontfix.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18787#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list