[wp-trac] [WordPress Trac] #35057: bug in new default_hidden_columns filter

WordPress Trac noreply at wordpress.org
Sun Dec 13 20:39:10 UTC 2015


#35057: bug in new default_hidden_columns filter
----------------------------+-----------------------------
 Reporter:  dwenaus         |      Owner:
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Administration  |    Version:  4.4
 Severity:  normal          |   Keywords:
  Focuses:  administration  |
----------------------------+-----------------------------
 This is a follow-up to #32499.

 In the function get_hidden_columns() the simple test to see if the user
 has hidden columns or not is
 if ( ! $hidden ) {
 however that also happens when the user has chosen to show all columns,
 it's and empty array.
 better would be
 if ( $hidden === false ) {
 that way the default_hidden_columns filter will only fire if the user
 option does not exist at all.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/35057>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list