WordPress.org

Make WordPress Core

Ticket #25408: 25408.20.diff

File 25408.20.diff, 730 bytes (added by kovshenin, 6 years ago)
  • src/wp-admin/includes/class-wp-list-table.php

     
    850850         * @return array
    851851         */
    852852        protected function get_column_info() {
    853                 if ( isset( $this->_column_headers ) && is_array( $this->_column_headers ) && count( $this->_column_headers ) >= 4 ) {
    854                         return $this->_column_headers;
     853                if ( isset( $this->_column_headers ) && is_array( $this->_column_headers ) ) {
     854                        return array_replace( array( array(), array(), array(), null ), $this->_column_headers );
    855855                }
    856856
    857857                $columns = get_column_headers( $this->screen );