Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/10/2015 10:17:49 PM (11 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-activity/bp-activity-admin.php

    r10006 r10007  
    11981198                        array(),
    11991199                        $this->get_sortable_columns(),
     1200                        $this->get_default_primary_column_name(),
    12001201                );
    12011202
    … …  
    17311732                return $tree;
    17321733        }
     1734
     1735        /**
     1736         * Get name of default primary column
     1737         *
     1738         * @since BuddyPress (2.3.3)
     1739         * @access protected
     1740         *
     1741         * @return string
     1742         */
     1743        protected function get_default_primary_column_name() {
     1744                return 'author';
     1745        }
    17331746}
Note: See TracChangeset for help on using the changeset viewer.