PHP (!) Notice because constructor for class WP_List_Table
-
A fourth argument, ‘screen’, has been added to the constructor for class WP_List_Table. The default value for this argument (null) causes the following PHP message when the class is used in an Ajax handler:
Notice: Undefined index: hook_suffix in ... \wp-admin\includes\screen.php on line 401
The call stack is:
1 {main}( ) ..\admin-ajax.php:0 2 do_action( ) ..\admin-ajax.php:70 3 call_user_func_array ( ) ..\plugin.php:406 4 MLA::mla_inline_edit_action( ) ..\plugin.php:0 5 MLA_List_Table->__construct( ) ..\class-mla-main.php:864 6 WP_List_Table->__construct( ) ..\class-mla-list-table.php:382 7 convert_to_screen( ) ..\class-wp-list-table.php:88 8 WP_Screen::get( ) ..\template.php:1874
Where can I find some guidance on how to use this new ‘screen’ parameter in an Ajax handler?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘PHP (!) Notice because constructor for class WP_List_Table’ is closed to new replies.