Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/10/2015 10:25:38 PM (10 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.

Fixes #6465. Props imath. For 2.4.0 (trunk)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-activity/bp-activity-admin.php

    r10005 r10008  
    11981198            array(),
    11991199            $this->get_sortable_columns(),
     1200            $this->get_primary_column_name(),
    12001201        );
    12011202
    12021203        return $this->_column_headers;
     1204    }
     1205
     1206    /**
     1207     * Get name of default primary column
     1208     *
     1209     * @since BuddyPress (2.3.3)
     1210     * @access protected
     1211     *
     1212     * @return string
     1213     */
     1214    protected function get_default_primary_column_name() {
     1215        return 'author';
    12031216    }
    12041217
Note: See TracChangeset for help on using the changeset viewer.