Skip to:
Content

BuddyPress.org

Ticket #6606: 6606.03.patch

File 6606.03.patch, 2.0 KB (added by imath, 9 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 6df7dd3..2cc8fae 100644
    class BP_Activity_List_Table extends WP_List_Table { 
    11991199        }
    12001200
    12011201        /**
     1202         * Get name of default primary column name and make sure nothing is broken in
     1203         * configurations < WP 4.0
     1204         *
     1205         * @since 2.3.4
     1206         * @access protected
     1207         *
     1208         * @return string
     1209         */
     1210        protected function get_primary_column_name() {
     1211                if ( ! method_exists( 'WP_List_Table', 'get_primary_column_name' ) ) {
     1212                        return $this->get_default_primary_column_name();
     1213                }
     1214
     1215                parent::get_primary_column_name();
     1216        }
     1217
     1218        /**
    12021219         * Get an array of all the columns on the page.
    12031220         *
    12041221         * @since 1.6.0
    class BP_Activity_List_Table extends WP_List_Table { 
    14521469         * unnecessary <button> addition.
    14531470         *
    14541471         * @since 2.3.3
    1455          * @access protected
     1472         * @access public
    14561473         *
    14571474         * @param array $actions The list of actions
    14581475         * @param bool $always_visible Whether the actions should be always visible
    14591476         * @return string
    14601477         */
    1461         protected function row_actions( $actions, $always_visible = false ) {
     1478        public function row_actions( $actions, $always_visible = false ) {
    14621479                $action_count = count( $actions );
    14631480                $i = 0;
    14641481
  • src/bp-groups/bp-groups-admin.php

    diff --git src/bp-groups/bp-groups-admin.php src/bp-groups/bp-groups-admin.php
    index 0abc180..ee987fc 100644
    class BP_Groups_List_Table extends WP_List_Table { 
    15001500         * unnecessary <button> addition.
    15011501         *
    15021502         * @since 2.3.3
    1503          * @access protected
     1503         * @access public
    15041504         *
    15051505         * @param array $actions The list of actions
    15061506         * @param bool $always_visible Whether the actions should be always visible
    15071507         * @return string
    15081508         */
    1509         protected function row_actions( $actions, $always_visible = false ) {
     1509        public function row_actions( $actions, $always_visible = false ) {
    15101510                $action_count = count( $actions );
    15111511                $i = 0;
    15121512