Changeset 6657
- Timestamp:
- 12/25/2012 09:01:15 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-groups/bp-groups-admin.php
r6654 r6657 364 364 exit; 365 365 } 366 } 367 368 /** 369 * Handle save/update of screen options for the Groups component admin screen 370 * 371 * @since BuddyPress (1.7) 372 * 373 * @param string $value Will always be false unless another plugin filters it first. 374 * @param string $option Screen option name 375 * @param string $new_value Screen option form value 376 * @return string Option value. False to abandon update. 377 */ 378 function bp_groups_admin_screen_options( $value, $option, $new_value ) { 379 if ( 'toplevel_page_bp_groups_per_page' != $option && 'toplevel_page_bp_groups_network_per_page' != $option ) 380 return $value; 381 382 // Per page 383 $new_value = (int) $new_value; 384 if ( $new_value < 1 || $new_value > 999 ) 385 return $value; 386 387 return $new_value; 366 388 } 367 389 … … 744 766 <thead> 745 767 <tr> 746 <th scope="col" class="uid-column"><?php _ex( 'ID', 'Group member user_id in group admin', 'buddypress' ) ?></th>747 768 <th scope="col" class="uname-column"><?php _ex( 'Name', 'Group member name in group admin', 'buddypress' ) ?></th> 748 769 <th scope="col" class="urole-column"><?php _ex( 'Group Role', 'Group member role in group admin', 'buddypress' ) ?></th> … … 1131 1152 return array( 1132 1153 'cb' => '<input name type="checkbox" />', 1133 'gid' => _x( 'ID', 'Groups admin Group ID column header', 'buddypress' ),1134 1154 'comment' => _x( 'Name', 'Groups admin Group Name column header', 'buddypress' ), 1135 1155 'description' => _x( 'Description', 'Groups admin Group Description column header', 'buddypress' ),
Note: See TracChangeset
for help on using the changeset viewer.