[wp-trac] [WordPress Trac] #19080: CPT identifier class name missing from #icon-edit DIV
WordPress Trac
wp-trac at lists.automattic.com
Sat Oct 29 04:04:56 UTC 2011
#19080: CPT identifier class name missing from #icon-edit DIV
--------------------------+-----------------------
Reporter: fjarrett | Owner: nacin
Type: defect (bug) | Status: accepted
Priority: normal | Milestone: 3.3
Component: UI | Version: 3.3
Severity: normal | Resolution:
Keywords: has-patch |
--------------------------+-----------------------
Comment (by nacin):
The issue is actually [19013]. We can't call convert_to_screen() for an
arbitrary post type (or other screen that contains meta boxes), as it only
handles hook names. A simple post type like 'slide' results in a terribly
mangled WP_Screen.
I've thought about a hash for WP_Screen but I didn't find it necessary at
the time. Though I do see some other reasons why this should happen now.
In part because I assumed that set_current_screen() would always be the
first WP_Screen, which obviously was an incorrect assumption.
If a meta box is a string, we may be able to get away with assuming it is
going to be the id. It certainly works for post types and links, at the
very least. I'll investigate further.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/19080#comment:11>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list