Opened 12 years ago
Closed 12 years ago
#22570 closed defect (bug) (fixed)
_get_list_table() should account for the lack of a screen for ajax
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 3.5 | Priority: | low |
Severity: | normal | Version: | |
Component: | General | Keywords: | has-patch commit dev-reviewed |
Focuses: | Cc: |
Description
http://wordpress.org/support/topic/php-notice-because-constructor-for-class-wp_list_table?replies=1
If 'screen' is not passed, _get_list_table() will call get_current_screen(), which might trip over hook_suffix not being set, for plugin-initiated ajax requests. We could do a quick check for elseif ( isset( $GLOBALS['hook_suffix'] ) )
to avoid the notice. Better to not pass a screen than an improper or broken one.
Attachments (1)
Change History (4)
Note: See
TracTickets for help on using
tickets.
Looks good.