WordPress.org

Make WordPress Core

Ticket #34148: 34148.2.diff

File 34148.2.diff, 565 bytes (added by danielbachhuber, 5 years ago)
  • src/wp-admin/includes/class-wp-list-table.php

    diff --git src/wp-admin/includes/class-wp-list-table.php src/wp-admin/includes/class-wp-list-table.php
    index d1b89c7..6467280 100644
    class WP_List_Table { 
    902902                $columns = $this->get_columns();
    903903                $column = '';
    904904
     905                if ( empty( $columns ) ) {
     906                        return $column;
     907                }
     908
    905909                // We need a primary defined so responsive views show something,
    906910                // so let's fall back to the first non-checkbox column.
    907911                foreach ( $columns as $col => $column_name ) {