Ticket #25408: 25408-22.diff
| File 25408-22.diff, 1.2 KB (added by , 11 years ago) |
|---|
-
src/wp-admin/includes/class-wp-list-table.php
859 859 $column = apply_filters( 'list_table_primary_column', $default, $this->screen->id ); 860 860 861 861 if ( empty( $column ) || ! isset( $columns[ $column ] ) ) { 862 $column = $default; 862 863 // Grab the first non-checkbox column 864 foreach( $columns as $col => $column_name ) { 865 866 if( 'cb' === $col ) { 867 continue; 868 } 869 870 $column = $col; 871 break; 872 873 } 874 863 875 } 864 876 865 877 return $column; … … 878 890 if ( isset( $this->_column_headers ) && is_array( $this->_column_headers ) ) { 879 891 // Back-compat for list tables that have been manually setting $_column_headers for horse reasons. 880 892 // In 4.3, we added a fourth argument for primary column. 881 $column_headers = array( array(), array(), array(), '');893 $column_headers = array( array(), array(), array(), $this->get_primary_column_name() ); 882 894 foreach ( $this->_column_headers as $key => $value ) { 883 895 $column_headers[ $key ] = $value; 884 896 }