[wp-trac] [WordPress Trac] #25408: Ability to specify that a list table column is "primary"

WordPress Trac noreply at wordpress.org
Wed Jun 10 16:42:22 UTC 2015


#25408: Ability to specify that a list table column is "primary"
-------------------------------------+-----------------------
 Reporter:  helen                    |       Owner:  stephdau
     Type:  enhancement              |      Status:  assigned
 Priority:  normal                   |   Milestone:  4.3
Component:  Administration           |     Version:
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |     Focuses:
-------------------------------------+-----------------------

Comment (by mordauk):

 It's failing because of `count( $this->_column_headers ) >= 4`.

 There are only three header items in this particular list table:

 {{{
 $columns = $this->get_columns();

 $hidden = array();

 $sortable = $this->get_sortable_columns();

 $this->_column_headers = array( $columns, $hidden, $sortable );
 }}}

 If `$this->_column_headers = array( $columns, $hidden, $sortable );` is
 changed to `$this->_column_headers = array( $columns, $hidden, $sortable,
 array() );`, the table shows properly.

 Seems the primary column isn't properly getting set.

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


More information about the wp-trac mailing list