| @@ -823,14 +823,13 @@ | ||
| 823 | 823 | * |
| 824 | 824 | * @return string Name of the default primary column, in this case, an empty string. |
| 825 | 825 | */ |
| 826 | 826 | protected function get_default_primary_column_name() { |
| 827 | - $columns = $this->get_columns(); | |
| 828 | - $column = ''; | |
| 827 | + $column = ''; | |
| 829 | 828 | |
| 830 | 829 | // We need a primary defined so responsive views show something, |
| 831 | 830 | // So let's fall back to the first non-checkbox column. |
| 832 | - foreach ( $columns as $col => $column_name ) { | |
| 831 | + foreach ( $this->get_columns() as $col => $column_name ) { | |
| 833 | 832 | if ( 'cb' === $col ) { |
| 834 | 833 | continue; |
| 835 | 834 | } |
| 836 | 835 | |
| @@ -895,11 +894,10 @@ | ||
| 895 | 894 | |
| 896 | 895 | return $column_headers; |
| 897 | 896 | } |
| 898 | 897 | |
| 899 | - $columns = get_column_headers( $this->screen ); | |
| 900 | - $hidden = get_hidden_columns( $this->screen ); | |
| 901 | - $sortable_columns = $this->get_sortable_columns(); | |
| 898 | + $columns = get_column_headers( $this->screen ); | |
| 899 | + $hidden = get_hidden_columns( $this->screen ); | |
| 902 | 900 | /** |
| 903 | 901 | * Filter the list table sortable columns for a specific screen. |
| 904 | 902 | * |
| 905 | 903 | * The dynamic portion of the hook name, `$this->screen->id`, refers |
| @@ -908,9 +906,9 @@ | ||
| 908 | 906 | * @since 3.5.0 |
| 909 | 907 | * |
| 910 | 908 | * @param array $sortable_columns An array of sortable columns. |
| 911 | 909 | */ |
| 912 | - $_sortable = apply_filters( "manage_{$this->screen->id}_sortable_columns", $sortable_columns ); | |
| 910 | + $_sortable = apply_filters( "manage_{$this->screen->id}_sortable_columns", $this->get_sortable_columns() ); | |
| 913 | 911 | |
| 914 | 912 | $sortable = array(); |
| 915 | 913 | |
| 916 | 914 | foreach ( $_sortable as $id => $data ) { |
| @@ -1215,9 +1213,9 @@ | ||
| 1215 | 1213 | * Generates content for a single row of the table |
| 1216 | 1214 | * |
| 1217 | 1215 | * @since 2.0.18 |
| 1218 | 1216 | * |
| 1219 | - * @param object $item The current item. | |
| 1217 | + * @param stdClass $item The current item. | |
| 1220 | 1218 | */ |
| 1221 | 1219 | public function single_row( $item ) { |
| 1222 | 1220 | echo '<tr>'; |
| 1223 | 1221 | $this->single_row_columns( $item ); |