[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 02:37:30 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: reporter-feedback |
-------------------------------+-----------------------
Comment (by SergeyBiryukov):
Replying to [comment:7 fjarrett]:
> What about '''post.php'''?
Indeed. In 3.2, `$current_screen->post_type` was set there from
`$post->post_type`:
http://core.trac.wordpress.org/browser/tags/3.2.1/wp-admin/post.php#L29
In 3.3, WP_Screen::get() is called twice (in this case). First, via
`add_meta_box()` (without `$post_type` set). Second, via
`set_current_screen()`. `$post_type` is set then, but the screen is
already in the registry, so it returns just before setting
`$screen->post_type`, leaving it empty again:
http://core.trac.wordpress.org/browser/trunk/wp-
admin/includes/screen.php#L501
--
Ticket URL: <http://core.trac.wordpress.org/ticket/19080#comment:8>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list