[wp-trac] [WordPress Trac] #21871: Reduce reliance on global variables in list tables
WordPress Trac
wp-trac at lists.automattic.com
Tue Sep 11 15:20:52 UTC 2012
#21871: Reduce reliance on global variables in list tables
----------------------------+-----------------
Reporter: ryan | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 3.5
Component: Administration | Version: 3.4
Severity: normal | Keywords:
----------------------------+-----------------
The list tables rely on several global variables such as $post_type,
$taxonomy, $post_type_object, and $tax. Instead of globals, list tables
should consult the WP_Screen object. Further, to accommodate ajax
handlers, the list table constructors should accept screen IDs as an arg
and create and store a WP_Screen object internally.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21871>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list