[wp-trac] [WordPress Trac] #32466: List table: hidden columns return unnecessary empty items

WordPress Trac noreply at wordpress.org
Fri May 22 17:17:02 UTC 2015

#32466: List table: hidden columns return unnecessary empty items
 Reporter:  afercia         |      Owner:
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Administration  |    Version:  4.2
 Severity:  normal          |   Keywords:
  Focuses:  javascript      |
 While investigating on List Tables, noticed the hidden columns (see
 `get_hidden_columns()`) returned, for example, this:


 where the serialized array stored in the DB has 4 empty strings (going to
 break it in multiple lines for readability):

 Turns out the current jQuery selector targets also the table headers in
 the footer and they don't have an ID. Since we need just the table headers
 with an ID, and we can't predict if they will be the ones in the `thead`
 or the ones in the `tfoot`, the proposed patch changes the jQuery selector
 to target just the ones with an ID.
 Stored value with the patch applied:

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

More information about the wp-trac mailing list