[wp-trac] [WordPress Trac] #19353: WP_Screen::get tramples screen ids
WordPress Trac
wp-trac at lists.automattic.com
Thu Nov 24 22:12:45 UTC 2011
#19353: WP_Screen::get tramples screen ids
--------------------------+-----------------------------
Reporter: batmoo | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 3.3
Severity: major | Keywords:
--------------------------+-----------------------------
There are several instances where {{{get_current_screen()}}} /
{{{WP_Screen::get}}} are trampling the screen id, which breaks things like
meta boxes.
Here's some that I've noticed:
1. if your post_type slug contains "-new" (e.g. "breaking-news") or "-add"
1. if your plugin page name contains hyphens with a post type or taxonomy
slug after the first hyphen (e.g. "my-page")
In the example of "breaking-news", the screen id gets changed to
"breakings", which causes the "Publish" meta box to disappear.
There are likely others.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/19353>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list