#15338 closed defect (bug) (fixed)
Use global $current_screen within the List Tables classes
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 3.1 | Priority: | normal |
Severity: | normal | Version: | 3.1 |
Component: | Administration | Keywords: | has-patch |
Focuses: | Cc: |
Description
At the moment WP_List_Table caches a local copy of the screen object rather than using the pre-existing global.
This gives the potential for them to get out of sync.
We should just use the one location for this data.
Either always referencing the global or probably better using get_current_screen() in each function that needs the screen object.
Attachments (1)
Change History (9)
#4
@
14 years ago
Thank You!
Do we still need to pass $screen
as an argument to the base class in deprecated.php?
Note: See
TracTickets for help on using
tickets.
Things to test: