Skip to:
Content

BuddyPress.org

Ticket #6465: 6465.patch

File 6465.patch, 1.5 KB (added by imath, 11 years ago)
  • src/bp-activity/bp-activity-admin.php

    diff --git src/bp-activity/bp-activity-admin.php src/bp-activity/bp-activity-admin.php
    index 2599573..b400370 100644
    class BP_Activity_List_Table extends WP_List_Table {  
    11971197                        $this->get_columns(),
    11981198                        array(),
    11991199                        $this->get_sortable_columns(),
     1200                        $this->get_primary_column_name(),
    12001201                );
    12011202
    12021203                return $this->_column_headers;
    … … class BP_Activity_List_Table extends WP_List_Table {  
    17301731
    17311732                return $tree;
    17321733        }
     1734
     1735        /**
     1736         * Get name of default primary column
     1737         *
     1738         * @since ?
     1739         * @access protected
     1740         *
     1741         * @return string
     1742         */
     1743        protected function get_default_primary_column_name() {
     1744                return 'author';
     1745        }
    17331746}
  • src/bp-groups/bp-groups-admin.php

    diff --git src/bp-groups/bp-groups-admin.php src/bp-groups/bp-groups-admin.php
    index ca90117..831916c 100644
    class BP_Groups_List_Table extends WP_List_Table {  
    12891289                        $this->get_columns(),
    12901290                        array(),
    12911291                        $this->get_sortable_columns(),
     1292                        $this->get_primary_column_name(),
    12921293                );
    12931294
    12941295                return $this->_column_headers;
    … … class BP_Groups_List_Table extends WP_List_Table {  
    17001701                 */
    17011702                return apply_filters( 'bp_groups_admin_get_group_custom_column', '', $column_name, $item );
    17021703        }
     1704
     1705        /**
     1706         * Get name of default primary column
     1707         *
     1708         * @since ?
     1709         * @access protected
     1710         *
     1711         * @return string
     1712         */
     1713        protected function get_default_primary_column_name() {
     1714                /* comment column is mapped to Group's name */
     1715                return 'comment';
     1716        }
    17031717}