Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/10/2015 10:17:49 PM (9 years ago)
Author:
johnjamesjacoby
Message:

Admin: Add primary columns to our list table implementations.

The commit ensures BuddyPress's list-tables have "primary" columns, to play nicely with new WordPress 4.3.0 requirement introduced in [WP32722]. BuddyPress manually sets $_column_headers for horse reasons.

See #6465. For 2.3.3 (2.3 branch)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.3/src/bp-groups/bp-groups-admin.php

    r10006 r10007  
    12941294            array(),
    12951295            $this->get_sortable_columns(),
     1296            $this->get_default_primary_column_name(),
    12961297        );
    12971298
     
    17051706        return apply_filters( 'bp_groups_admin_get_group_custom_column', '', $column_name, $item );
    17061707    }
     1708
     1709    /**
     1710     * Get name of default primary column
     1711     *
     1712     * @since BuddyPress (2.3.3)
     1713     * @access protected
     1714     *
     1715     * @return string
     1716     */
     1717    protected function get_default_primary_column_name() {
     1718        // comment column is mapped to Group's name
     1719        return 'comment';
     1720    }
    17071721}
Note: See TracChangeset for help on using the changeset viewer.