diff -r 34716fd837a4 -r be944660c56a wp/wp-admin/includes/class-wp-list-table-compat.php --- a/wp/wp-admin/includes/class-wp-list-table-compat.php Tue Dec 15 15:52:01 2020 +0100 +++ b/wp/wp-admin/includes/class-wp-list-table-compat.php Wed Sep 21 18:19:35 2022 +0200 @@ -8,7 +8,7 @@ */ /** - * Helper class to be used only by back compat functions + * Helper class to be used only by back compat functions. * * @since 3.1.0 */ @@ -16,6 +16,15 @@ public $_screen; public $_columns; + /** + * Constructor. + * + * @since 3.1.0 + * + * @param string|WP_Screen $screen The screen hook name or screen object. + * @param string[] $columns An array of columns with column IDs as the keys + * and translated column names as the values. + */ public function __construct( $screen, $columns = array() ) { if ( is_string( $screen ) ) { $screen = convert_to_screen( $screen ); @@ -30,6 +39,10 @@ } /** + * Gets a list of all, hidden, and sortable columns. + * + * @since 3.1.0 + * * @return array */ protected function get_column_info() { @@ -42,6 +55,10 @@ } /** + * Gets a list of columns. + * + * @since 3.1.0 + * * @return array */ public function get_columns() {