Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
03/03/2013 07:42:21 PM (12 years ago)
Author:
boonebgorges
Message:

s/activity/group throughout bp-groups-admin.php

See #4861

Props imath

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-groups/bp-groups-admin.php

    r6788 r6830  
    142142    // Index screen
    143143    } else {
    144         // Create the Activity screen list table
     144        // Create the Groups screen list table
    145145        $bp_groups_list_table = new BP_Groups_List_Table();
    146146
     
    181181
    182182    if ( $doaction && 'save' == $doaction ) {
    183         // Get activity ID
     183        // Get group ID
    184184        $group_id = isset( $_REQUEST['gid'] ) ? (int) $_REQUEST['gid'] : '';
    185185
     
    478478    $is_error = ! empty( $no_admins ) || ! empty( $errors ) || ! empty( $error_new ) || ! empty( $error_modified );
    479479
    480     // Get the activity from the database
     480    // Get the group from the database
    481481    $group      = groups_get_group( 'group_id=' . $_GET['gid'] );
    482482    $group_name = isset( $group->name ) ? apply_filters( 'bp_get_group_name', $group->name ) : '';
     
    600600 * BuddyPress groups.
    601601 *
    602  * @global BP_Activity_List_Table $bp_groups_list_table Activity screen list table
     602 * @global BP_Group_List_Table $bp_groups_list_table Group screen list table
    603603 * @global string $plugin_page
    604604 * @since BuddyPress (1.7)
     
    614614
    615615        if ( $deleted > 0 ) {
    616             $messages[] = sprintf( _n( '%s activity has been permanently deleted.', '%s activity items have been permanently deleted.', $deleted, 'buddypress' ), number_format_i18n( $deleted ) );
    617         }
    618     }
    619 
    620     // Prepare the activity items for display
     616            $messages[] = sprintf( _n( '%s group has been permanently deleted.', '%s groups have been permanently deleted.', $deleted, 'buddypress' ), number_format_i18n( $deleted ) );
     617        }
     618    }
     619
     620    // Prepare the group items for display
    621621    $bp_groups_list_table->prepare_items();
    622622
     
    951951        parent::__construct( array(
    952952            'ajax'     => false,
    953             'plural'   => 'activities',
    954             'singular' => 'activity',
     953            'plural'   => 'groups',
     954            'singular' => 'group',
    955955        ) );
    956956    }
     
    10261026        }
    10271027
    1028         // If we're viewing a specific activity, flatten all activites into a single array.
     1028        // If we're viewing a specific group, flatten all activites into a single array.
    10291029        if ( $include_id ) {
    10301030            $groups = array( (array) groups_get_group( 'group_id=' . $include_id ) );
     
    11301130        }
    11311131
    1132         echo '<tr' . $row_class . ' id="activity-' . esc_attr( $item['id'] ) . '" data-parent_id="' . esc_attr( $item['id'] ) . '" data-root_id="' . esc_attr( $item['id'] ) . '">';
     1132        echo '<tr' . $row_class . ' id="group-' . esc_attr( $item['id'] ) . '" data-parent_id="' . esc_attr( $item['id'] ) . '" data-root_id="' . esc_attr( $item['id'] ) . '">';
    11331133        echo $this->single_row_columns( $item );
    11341134        echo '</tr>';
     
    12591259
    12601260        // Other plugins can filter which actions are shown
    1261         $actions = apply_filters( 'bp_activity_admin_comment_row_actions', array_filter( $actions ), $item );
     1261        $actions = apply_filters( 'bp_groups_admin_comment_row_actions', array_filter( $actions ), $item );
    12621262
    12631263        // Get group name and avatar
Note: See TracChangeset for help on using the changeset viewer.