Changeset 6830 for trunk/bp-groups/bp-groups-admin.php
- Timestamp:
- 03/03/2013 07:42:21 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-groups/bp-groups-admin.php
r6788 r6830 142 142 // Index screen 143 143 } else { 144 // Create the Activityscreen list table144 // Create the Groups screen list table 145 145 $bp_groups_list_table = new BP_Groups_List_Table(); 146 146 … … 181 181 182 182 if ( $doaction && 'save' == $doaction ) { 183 // Get activityID183 // Get group ID 184 184 $group_id = isset( $_REQUEST['gid'] ) ? (int) $_REQUEST['gid'] : ''; 185 185 … … 478 478 $is_error = ! empty( $no_admins ) || ! empty( $errors ) || ! empty( $error_new ) || ! empty( $error_modified ); 479 479 480 // Get the activityfrom the database480 // Get the group from the database 481 481 $group = groups_get_group( 'group_id=' . $_GET['gid'] ); 482 482 $group_name = isset( $group->name ) ? apply_filters( 'bp_get_group_name', $group->name ) : ''; … … 600 600 * BuddyPress groups. 601 601 * 602 * @global BP_ Activity_List_Table $bp_groups_list_table Activityscreen list table602 * @global BP_Group_List_Table $bp_groups_list_table Group screen list table 603 603 * @global string $plugin_page 604 604 * @since BuddyPress (1.7) … … 614 614 615 615 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 activityitems for display616 $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 621 621 $bp_groups_list_table->prepare_items(); 622 622 … … 951 951 parent::__construct( array( 952 952 'ajax' => false, 953 'plural' => ' activities',954 'singular' => ' activity',953 'plural' => 'groups', 954 'singular' => 'group', 955 955 ) ); 956 956 } … … 1026 1026 } 1027 1027 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. 1029 1029 if ( $include_id ) { 1030 1030 $groups = array( (array) groups_get_group( 'group_id=' . $include_id ) ); … … 1130 1130 } 1131 1131 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'] ) . '">'; 1133 1133 echo $this->single_row_columns( $item ); 1134 1134 echo '</tr>'; … … 1259 1259 1260 1260 // 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 ); 1262 1262 1263 1263 // Get group name and avatar
Note: See TracChangeset
for help on using the changeset viewer.