[wp-trac] [WordPress Trac] #22570: _get_list_table() should account for the lack of a screen for ajax

WordPress Trac noreply at wordpress.org
Sat Nov 24 04:05:18 UTC 2012


#22570: _get_list_table() should account for the lack of a screen for ajax
-------------------+--------------------------
 Reporter:  nacin  |       Type:  defect (bug)
   Status:  new    |   Priority:  low
Milestone:  3.5    |  Component:  General
  Version:         |   Severity:  normal
 Keywords:         |
-------------------+--------------------------
 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.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/22570>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list