[wp-trac] [WordPress Trac] #14886: current_screen object lies because of unspecified post_type parameter

WordPress Trac wp-trac at lists.automattic.com
Sat Jan 8 14:15:31 UTC 2011


#14886: current_screen object lies because of unspecified post_type parameter
----------------------------------------------+----------------------------
 Reporter:  nacin                             |       Owner:
     Type:  defect (bug)                      |      Status:  new
 Priority:  normal                            |   Milestone:  Future
Component:  Post Types                        |  Release
 Severity:  normal                            |     Version:
 Keywords:  has-patch dev-feedback 3.2-early  |  Resolution:
----------------------------------------------+----------------------------
Changes (by garyc40):

 * keywords:  needs-patch 3.2-early => has-patch dev-feedback 3.2-early


Comment:

 I must admit I'm not very familiar with how {{{$current_screen}}} works
 with other admin pages. But I'd like to get the ball rolling for this
 ticket.

 I moved the correcting code in {{{post.php}}} to
 {{{set_current_screen()}}}, and set the default {{{$typenow}}} for
 {{{edit-tag}}} to {{{post}}}. Am I going in the right direction? Is there
 anything in this patch that I can improve?

 Hopefully this will set the motion for this issue to get fixed in 3.2 .

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/14886#comment:13>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list