[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 23:00:57 UTC 2015


#34148: PHP notice in class WP_List_Table using register_column_headers
(_WP_List_Table_Compat)
----------------------------+-----------------------------
 Reporter:  Hax             |       Owner:  wonderboymusic
     Type:  defect (bug)    |      Status:  closed
 Priority:  normal          |   Milestone:  4.4
Component:  Administration  |     Version:  4.3
 Severity:  normal          |  Resolution:  fixed
 Keywords:  has-patch       |     Focuses:  administration
----------------------------+-----------------------------
Changes (by wonderboymusic):

 * owner:   => wonderboymusic
 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"35698"]:
 {{{
 #!CommitTicketReference repository="" revision="35698"
 List Tables: Fix PHP error notice when `$columns` is `null`

 Use of `register_column_headers()` and `print_column_headers()` creates a
 `_WP_List_Table_Compat` without any columns. When the List Table object
 doesn't have any columns, there's naturally no primary column.

 Props danielbachhuber.
 Fixes #34148.
 }}}

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


More information about the wp-trac mailing list