[wp-trac] [WordPress Trac] #34148: PHP notice in class WP_List_Table using register_column_headers (_WP_List_Table_Compat)
WordPress Trac
noreply at wordpress.org
Sun Oct 4 22:51:16 UTC 2015
#34148: PHP notice in class WP_List_Table using register_column_headers
(_WP_List_Table_Compat)
----------------------------+-----------------------------
Reporter: Hax | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Administration | Version: 4.3.1
Severity: normal | Keywords:
Focuses: administration |
----------------------------+-----------------------------
If you use the register_column_headers function, it creates a new instance
of the _WP_List_Table_Compat class.
_WP_List_Table_Compat::get_column_info() method returns an array with 3
values. Line 114 file /wp-admin/includes/list-table.php
WP_List_Table::print_column_headers() method uses the
$this->get_column_info() method which expects 4 values. Line 993 file
/wp-admin/includes/class-wp-list-table.php
Debug returns the fallowing notice
Notice: Undefined offset: 3 in /wp-admin/includes/class-wp-list-table.php
on line 993
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34148>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list