Make WordPress Core

Ticket #46842: 46842-4.patch

File 46842-4.patch, 1.7 KB (added by johannadevos, 5 years ago)
  • src/wp-admin/includes/class-wp-list-table-compat.php

    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  
    11<?php
    22/**
    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.
    44 *
    55 * @package WordPress
    66 * @subpackage List_Table
     
    88 */
    99
    1010/**
    11  * Helper class to be used only by back compat functions
     11 * Helper class to be used only by back compat functions.
    1212 *
    1313 * @since 3.1.0
    1414 */
    class _WP_List_Table_Compat extends WP_List_Table { 
    1616        public $_screen;
    1717        public $_columns;
    1818
     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         */
    1927        public function __construct( $screen, $columns = array() ) {
    2028                if ( is_string( $screen ) ) {
    2129                        $screen = convert_to_screen( $screen );
    class _WP_List_Table_Compat extends WP_List_Table { 
    3038        }
    3139
    3240        /**
    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.
    3446         */
    3547        protected function get_column_info() {
    3648                $columns  = get_column_headers( $this->_screen );
    class _WP_List_Table_Compat extends WP_List_Table { 
    4254        }
    4355
    4456        /**
    45          * @return array
     57         * Gets an array of columns.
     58         *
     59         * @since 3.1.0
     60         *
     61         * @return array The columns.
    4662         */
    4763        public function get_columns() {
    4864                return $this->_columns;