Changeset 1520
- Timestamp:
- 06/05/2009 09:58:24 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-activity/bp-activity-widgets.php
r1488 r1520 28 28 29 29 <?php 30 if ( empty( $options['max_items'] ) ) {30 if ( !$options['max_items'] || empty( $options['max_items'] ) ) 31 31 $options['max_items'] = 20; 32 }33 32 ?> 34 33 -
trunk/bp-blogs/bp-blogs-widgets.php
r1473 r1520 21 21 extract($args); 22 22 $options = get_blog_option( $current_blog->blog_id, 'bp_blogs_widget_recent_posts' ); 23 24 if ( empty( $options['max_posts'] ) || !$options['max_posts'] ) 25 $options['max_posts'] = 5; 23 26 ?> 24 27 <?php echo $before_widget; ?> … … 27 30 . $after_title; ?> 28 31 29 30 32 <?php $posts = bp_blogs_get_latest_posts( null, $options['max_posts'] ) ?> 33 <?php $counter = 0; ?> 31 34 32 35 <?php if ( $posts ) : ?> -
trunk/bp-core/bp-core-widgets.php
r1518 r1520 89 89 . $after_title; ?> 90 90 91 <?php 91 <?php 92 if ( empty( $options['max_members'] ) || !$options['max_members'] ) 93 $options['max_members'] = 5; 94 92 95 if ( !$users = wp_cache_get( 'newest_users', 'bp' ) ) { 93 96 $users = BP_Core_User::get_newest_users( $options['max_members'] ); … … 170 173 . $after_title; ?> 171 174 172 <?php 175 <?php 176 if ( empty( $options['max_members'] ) || !$options['max_members'] ) 177 $options['max_members'] = 5; 178 173 179 if ( !$users = wp_cache_get( 'online_users', 'bp' ) ) { 174 180 $users = BP_Core_User::get_online_users( $options['max_members'] ); -
trunk/bp-groups/bp-groups-widgets.php
r1505 r1520 32 32 33 33 <?php 34 if ( empty( $options['max_groups'] ) || !$options['max_groups'] ) 35 $options['max_groups'] = 5; 36 34 37 if ( !$groups = wp_cache_get( 'popular_groups', 'bp' ) ) { 35 38 $groups = groups_get_popular( $options['max_groups'], 1 );
Note: See TracChangeset
for help on using the changeset viewer.