[wp-trac] [WordPress Trac] #16279: Don't hardcode colspan in WP_List_Table when there are no items

WordPress Trac wp-trac at lists.automattic.com
Thu Jan 20 22:16:05 UTC 2011


#16279: Don't hardcode colspan in WP_List_Table when there are no items
-------------------------------------+----------------------
 Reporter:  garyc40                  |       Owner:  garyc40
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  3.1
Component:  Administration           |     Version:  3.1
 Severity:  minor                    |  Resolution:
 Keywords:  has-patch needs-testing  |
-------------------------------------+----------------------

Comment (by nacin):

 This doesn't take into account hidden columns.

 Also, when you do take into account hidden columns with a `- count(
 $hidden )`, I get one more, as my array is this: `array( 0 => 'response',
 1 => '' )`. Not a clue why I have the empty value, but an array_filter()
 can remove it if it isn't just me.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/16279#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list