[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
Wed Nov 18 22:10:36 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:  assigned
 Priority:  normal          |   Milestone:  4.4
Component:  Administration  |     Version:  4.3
 Severity:  normal          |  Resolution:
 Keywords:  has-patch       |     Focuses:  administration
----------------------------+-----------------------------

Comment (by danielbachhuber):

 Replying to [comment:11 JustinSainton]:
 > I'm not sure if this is the best/right solution, but modifying the
 `$_columns` property in the `_WP_List_Table_Compat` class to default to an
 array, rather than NULL, seems to fix the issue.
 >
 > @danielbachhuber, thoughts on that?

 Could fix it. So far I've tracked it down to
 `WP_List_Table::get_default_primary_column_name()` being called in trunk,
 but not in 4.3. I don't yet know why this is the case.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/34148#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list