[wp-trac] [WordPress Trac] #19077: Custom Post Type Sub-Menu Items Broken
WordPress Trac
wp-trac at lists.automattic.com
Sat Oct 29 00:48:45 UTC 2011
#19077: Custom Post Type Sub-Menu Items Broken
--------------------------+------------------
Reporter: Jick | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.3
Component: UI | Version: 3.3
Severity: major | Resolution:
Keywords: has-patch |
--------------------------+------------------
Changes (by SergeyBiryukov):
* keywords: => has-patch
Comment:
Since [19052], `WP_Screen::set_current_screen()` overwrites `$typenow`
with `$current_screen->post_type`, even if it's empty. Before that, it
used to be vice versa:
`$current_screen->post_type` was set from `$typenow`.
[attachment:19077.patch] is an attempt to restore previous behaviour.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/19077#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list