[wp-trac] [WordPress Trac] #21871: Reduce reliance on global variables in list tables

WordPress Trac wp-trac at lists.automattic.com
Thu Sep 20 16:25:10 UTC 2012


#21871: Reduce reliance on global variables in list tables
----------------------------+-----------------------
 Reporter:  ryan            |       Owner:  ryan
     Type:  enhancement     |      Status:  reopened
 Priority:  normal          |   Milestone:  3.5
Component:  Administration  |     Version:  3.4
 Severity:  normal          |  Resolution:
 Keywords:  needs-patch     |
----------------------------+-----------------------

Comment (by nacin):

 I was afraid of that. I think this is actually fixable in WP_Screen.

 When we aren't given a hook_name, we try to clean the post type and
 taxonomy from `$_REQUEST`. We also try to set $post_type to 'post' on
 edit-tags.php when we have no $post_type. But we should always try to set
 $post_type to 'post', whether or not we're given a hook name.

 See [attachment:21871.4.diff].

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


More information about the wp-trac mailing list