diff --git a/src/wp-admin/includes/class-wp-list-table-compat.php b/src/wp-admin/includes/class-wp-list-table-compat.php
index eb9ea2cfe3..9bf71b76ef 100644
|
a
|
b
|
|
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | | * Helper functions for displaying a list of items in an ajaxified HTML table. |
| | 3 | * Helper functions for displaying an array of items in an ajaxified HTML table. |
| 4 | 4 | * |
| 5 | 5 | * @package WordPress |
| 6 | 6 | * @subpackage List_Table |
| … |
… |
|
| 8 | 8 | */ |
| 9 | 9 | |
| 10 | 10 | /** |
| 11 | | * Helper class to be used only by back compat functions |
| | 11 | * Helper class to be used only by back compat functions. |
| 12 | 12 | * |
| 13 | 13 | * @since 3.1.0 |
| 14 | 14 | */ |
| … |
… |
class _WP_List_Table_Compat extends WP_List_Table { |
| 16 | 16 | public $_screen; |
| 17 | 17 | public $_columns; |
| 18 | 18 | |
| | 19 | /** |
| | 20 | * Constructor function. |
| | 21 | * |
| | 22 | * @param string|WP_Screen $screen The current screen. |
| | 23 | * @param array $columns The columns in the current screen. |
| | 24 | * |
| | 25 | * @since 3.1.0 |
| | 26 | */ |
| 19 | 27 | public function __construct( $screen, $columns = array() ) { |
| 20 | 28 | if ( is_string( $screen ) ) { |
| 21 | 29 | $screen = convert_to_screen( $screen ); |
| … |
… |
class _WP_List_Table_Compat extends WP_List_Table { |
| 30 | 38 | } |
| 31 | 39 | |
| 32 | 40 | /** |
| 33 | | * @return array |
| | 41 | * Gets an array of columns: all, hidden, sortable and default primary columns. |
| | 42 | * |
| | 43 | * @since 3.1.0 |
| | 44 | * |
| | 45 | * @return array The column info. |
| 34 | 46 | */ |
| 35 | 47 | protected function get_column_info() { |
| 36 | 48 | $columns = get_column_headers( $this->_screen ); |
| … |
… |
class _WP_List_Table_Compat extends WP_List_Table { |
| 42 | 54 | } |
| 43 | 55 | |
| 44 | 56 | /** |
| 45 | | * @return array |
| | 57 | * Gets an array of columns. |
| | 58 | * |
| | 59 | * @since 3.1.0 |
| | 60 | * |
| | 61 | * @return array The columns. |
| 46 | 62 | */ |
| 47 | 63 | public function get_columns() { |
| 48 | 64 | return $this->_columns; |