Skip to:
Content

BuddyPress.org

Ticket #6606: 6606.02.patch

File 6606.02.patch, 2.5 KB (added by imath, 8 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 4157d6c..148a57b 100644
    class BP_Activity_List_Table extends WP_List_Table { 
    11861186        }
    11871187
    11881188        /**
     1189         * Get name of default primary column name and make sure nothing is broken in
     1190         * configurations < WP 4.0
     1191         *
     1192         * @since 2.3.4
     1193         * @access protected
     1194         *
     1195         * @return string
     1196         */
     1197        protected function get_primary_column_name() {
     1198                if ( ! method_exists( 'WP_List_Table', 'get_primary_column_name' ) ) {
     1199                        return $this->get_default_primary_column_name();
     1200                }
     1201
     1202                parent::get_primary_column_name();
     1203        }
     1204
     1205        /**
    11891206         * Get an array of all the columns on the page.
    11901207         *
    11911208         * @since 1.6.0
    class BP_Activity_List_Table extends WP_List_Table { 
    13931410
    13941411                <div class="alignleft actions">
    13951412                        <label for="activity-type" class="screen-reader-text"><?php _e( 'Filter by activity type', 'buddypress' ); ?></label>
    1396                         <select name="activity_type" id="activity-type"> 
     1413                        <select name="activity_type" id="activity-type">
    13971414                                <option value="" <?php selected( ! $selected ); ?>><?php _e( 'View all actions', 'buddypress' ); ?></option>
    13981415
    13991416                                <?php foreach ( $activity_actions as $component => $actions ) : ?>
    class BP_Activity_List_Table extends WP_List_Table { 
    14321449         * unnecessary <button> addition.
    14331450         *
    14341451         * @since 2.3.3
    1435          * @access protected
     1452         * @access public
    14361453         *
    14371454         * @param array $actions The list of actions
    14381455         * @param bool $always_visible Whether the actions should be always visible
    14391456         * @return string
    14401457         */
    1441         protected function row_actions( $actions, $always_visible = false ) {
     1458        public function row_actions( $actions, $always_visible = false ) {
    14421459                $action_count = count( $actions );
    14431460                $i = 0;
    14441461
  • 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