Changeset 8079
- Timestamp:
- 03/08/2014 12:04:36 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-groups/bp-groups-widgets.php
r7756 r8079 170 170 } 171 171 172 if ( bp_has_groups( 'type=' . $type . '&per_page=' . $_POST['max_groups'] . '&max=' . $_POST['max_groups'] ) ) : ?> 172 $per_page = isset( $_POST['max_groups'] ) ? intval( $_POST['max_groups'] ) : 5; 173 174 $groups_args = array( 175 'type' => $type, 176 'per_page' => $per_page, 177 'max' => $per_page, 178 ); 179 180 if ( bp_has_groups( $groups_args ) ) : ?> 173 181 <?php echo "0[[SPLIT]]"; ?> 174 182 <?php while ( bp_groups() ) : bp_the_group(); ?>
Note: See TracChangeset
for help on using the changeset viewer.