[wp-trac] [WordPress Trac] #21016: Breaks Tables if thead, #cb, .column-title, etc. is hidden when ajax is ran on screen using WP_List_Table (was: Quick Edit removes custom added edit columns on save)

WordPress Trac noreply at wordpress.org
Fri Jul 25 11:21:41 UTC 2014


#21016: Breaks Tables if thead, #cb, .column-title, etc. is hidden when ajax is ran
on screen using WP_List_Table
----------------------------+-----------------------------
 Reporter:  sillybean       |       Owner:
     Type:  defect (bug)    |      Status:  reopened
 Priority:  normal          |   Milestone:
Component:  Administration  |     Version:  3.3
 Severity:  major           |  Resolution:
 Keywords:  needs-patch     |     Focuses:  administration
----------------------------+-----------------------------
Changes (by codecandid):

 * status:  closed => reopened
 * focuses:   => administration
 * severity:  normal => major
 * component:  Quick/Bulk Edit => Administration
 * keywords:   => needs-patch
 * resolution:  invalid =>


Comment:

 If at any point a table header column gets hidden and their is an ajax
 update, it completly breaks the tables...

 If  .column-title, thead, #cb, or anything similar ever get their
 visibility hidden by css, js, etc. and manage-
 edit{$post_type}columnshidden gets updated, it will completly break the
 table for that user.

 This can easily be recreated:
 1) open up firebug/chrome dev tools/etc. on http://www.example.com/wp-
 admin/edit.php
 2) add
 {{{
 thead {display: none;}
 }}}
 3) Go to Screen Options on the page you have opened
 4) Uncheck any column ( just to ensure that manage-editpostcolumnshidden
 has been added to the database )
 5) Hit apply

 Voila! Table Broken...

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


More information about the wp-trac mailing list