Changeset 10384
- Timestamp:
- 11/28/2015 03:32:24 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-groups/bp-groups-widgets.php
r10373 r10384 100 100 echo $before_title . $title . $after_title; 101 101 102 $max_groups = ! empty( $instance['max_groups'] ) ? (int) $instance['max_groups'] : 5; 103 102 104 $group_args = array( 103 105 'user_id' => $user_id, 104 106 'type' => $instance['group_default'], 105 'per_page' => $ instance['max_groups'],106 'max' => $ instance['max_groups'],107 'per_page' => $max_groups, 108 'max' => $max_groups, 107 109 ); 108 110 … … 145 147 </ul> 146 148 <?php wp_nonce_field( 'groups_widget_groups_list', '_wpnonce-groups' ); ?> 147 <input type="hidden" name="groups_widget_max" id="groups_widget_max" value="<?php echo esc_attr( $ instance['max_groups']); ?>" />149 <input type="hidden" name="groups_widget_max" id="groups_widget_max" value="<?php echo esc_attr( $max_groups ); ?>" /> 148 150 149 151 <?php else: ?>
Note: See TracChangeset
for help on using the changeset viewer.