[wp-trac] [WordPress Trac] #15318: Can't add custom columns to the plugins admin page

WordPress Trac wp-trac at lists.automattic.com
Thu Nov 4 13:57:11 UTC 2010


#15318: Can't add custom columns to the plugins admin page
----------------------------+-----------------------------------------------
 Reporter:  scribu          |       Owner:                 
     Type:  defect (bug)    |      Status:  new            
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  Administration  |     Version:                 
 Severity:  normal          |    Keywords:                 
----------------------------+-----------------------------------------------
 The Plugins list table is different from all the rest, in the sense that
 it uses more than one row per item (simplified):

 {{{
 <tr>
   <td>Plugin Name</td>
   <td>Description</td>
 </tr>

 <tr class="second">
   <td>Activate | Delete</td>
   <td>Version 1.0 | By: someone</td>
 </tr>

 <tr class="plugin-update-tr">
   <td class="plugin-update" colspan="3">There's an update available</td>
 </tr>
 }}}

 I assume this approach was chosen to make the action links stay at the
 bottom, when the description is larger.

 Problems:

  * plugins can't add custom columns
  * columns can't be hidden

 Supposing these two problems were fixed, we'd still have to have a weird
 workaround for the colspan attribute in the update notification row.

 I suggest we switch to a single row per item and use CSS to position the
 elements.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/15318>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list