Changeset 2695 for trunk/bp-core/bp-core-widgets.php
- Timestamp:
- 02/12/2010 12:31:49 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-widgets.php
r2669 r2695 87 87 . $after_title; ?> 88 88 89 <?php if ( bp_has_members( 'user_id=0&type=newest&max=' . $instance['max_members'] ) ) : ?>89 <?php if ( bp_has_members( 'user_id=0&type=newest&max=' . $instance['max_members'] . '&populate_extras=0' ) ) : ?> 90 90 <div class="item-options" id="members-list-options"> 91 91 <span class="ajax-loader" id="ajax-loader-members"></span> … … 255 255 global $bp; 256 256 257 check_ajax_referer( 'bp_core_widget_members');257 check_ajax_referer( 'bp_core_widget_members' ); 258 258 259 259 switch ( $_POST['filter'] ) { … … 267 267 $type = 'popular'; 268 268 break; 269 } ?> 270 <?php if ( bp_has_members( 'user_id=0&type=' . $type . '&per_page=' . $_POST['max-members'] . '&max=' . $_POST['max-members'] ) ) : ?> 271 <?php echo '0[[SPLIT]]'; // return valid result. TODO: remove this because it's dumb. ?> 269 } 270 271 if ( bp_has_members( 'user_id=0&type=' . $type . '&per_page=' . $_POST['max-members'] . '&max=' . $_POST['max-members'] . '&populate_extras=0' ) ) : ?> 272 <?php echo '0[[SPLIT]]'; // return valid result. TODO: remove this. ?> 272 273 <div class="avatar-block"> 273 274 <?php while ( bp_members() ) : bp_the_member(); ?> … … 279 280 <div class="item"> 280 281 <div class="item-title fn"><a href="<?php bp_member_permalink() ?>" title="<?php bp_member_name() ?>"><?php bp_member_name() ?></a></div> 281 <?php if ( 'active' == $type ) : ?>282 <?php if ( 'active' == $type || 'newest' == $type ) : ?> 282 283 <div class="item-meta"><span class="activity"><?php bp_member_last_active() ?></span></div> 283 284 <?php else : ?>
Note: See TracChangeset
for help on using the changeset viewer.