Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #29933


Ignore:
Timestamp:
10/12/2014 12:12:03 AM (11 years ago)
Author:
SergeyBiryukov
Comment:

Could you provide a piece of code to reproduce the issue?

$hook_suffix is only set after admin_init, you're probably calling WP_Screen::get() too early.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #29933

    • Property Keywords reporter-feedback added
    • Property Focuses administration added; performance removed
    • Property Component changed from Plugins to Administration
  • Ticket #29933 – Description

    initial v1  
    11Using WP_List_Table subclasses in a plugin, I am receiving this error:
    2 
     2{{{
    33( ! ) Notice: Undefined index: hook_suffix in ~~~~/wp-admin/includes/screen.php on line 388
    44Call Stack
     
    12127       0.2989  21471512        convert_to_screen( )    ../class-wp-list-table.php:101
    13138       0.2989  21471920        WP_Screen::get( )       ../template.php:2079
     14}}}