current_screen object lies because of unspecified post_type parameter
|Reported by:||nacin||Owned by:||nacin|
When editing a page, you don't usually end up with post_type in the URL. That should be fine. But in admin.php, we assume that if no post type is specified, then typenow and current_screen ends up with incorrect information, and it's difficult to properly detect what's going on.
One fix would be to detect the post type based on the ID. Or, we can force a redirect and force all URLs to contain the proper post_type parameter except for post_type = post.
Change History (24)
comment:19 nacin — 2 years ago
- Owner set to nacin
- Resolution set to fixed
- Status changed from new to closed