Skip to:
Content

BuddyPress.org

Changeset 14166


Ignore:
Timestamp:
12/23/2025 03:10:36 AM (7 months ago)
Author:
espellcaste
Message:

Fix an issue where hidden columns (using the Screen Options tab) were not being "enforced" in the Groups List Table.

Props shawfactor.

Fixes #9244 (14.0)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/14.0/src/bp-groups/classes/class-bp-groups-list-table.php

    r13878 r14166  
    219219         *
    220220         * @since 1.7.0
     221         * @since 14.5.0 The list of hidden columns are set.
    221222         *
    222223         * @return array Array of column headers.
    223224         */
    224225        public function get_column_info() {
     226                $columns = $this->get_columns();
     227                $hidden  = get_hidden_columns( $this->screen );
     228
    225229                $this->_column_headers = array(
    226                         $this->get_columns(),
    227                         array(),
     230                        $columns,
     231                        $hidden,
    228232                        $this->get_sortable_columns(),
    229233                        $this->get_default_primary_column_name(),
Note: See TracChangeset for help on using the changeset viewer.