Ticket #6387: bp-groups-template.php.patch
File bp-groups-template.php.patch, 2.4 KB (added by , 9 years ago) |
---|
-
src/bp-groups/bp-groups-template.php
2457 2457 * @return string 2458 2458 */ 2459 2459 function bp_get_group_member_promote_admin_link( $args = '' ) { 2460 global $members_template , $groups_template;2460 global $members_template; 2461 2461 2462 2462 $defaults = array( 2463 2463 'user_id' => !empty( $members_template->member->user_id ) ? $members_template->member->user_id : false, 2464 'group' => &$groups_template->group2464 'group' => groups_get_current_group() 2465 2465 ); 2466 2466 2467 2467 $r = wp_parse_args( $args, $defaults ); … … 2500 2500 * @return string 2501 2501 */ 2502 2502 function bp_get_group_member_demote_link( $user_id = 0, $group = false ) { 2503 global $members_template , $groups_template;2503 global $members_template; 2504 2504 2505 2505 if ( empty( $group ) ) 2506 $group = & $groups_template->group;2506 $group =groups_get_current_group(); 2507 2507 2508 2508 if ( !$user_id ) 2509 2509 $user_id = $members_template->member->user_id; … … 2541 2541 * @return string 2542 2542 */ 2543 2543 function bp_get_group_member_ban_link( $user_id = 0, $group = false ) { 2544 global $groups_template;2545 2544 2546 2545 if ( empty( $group ) ) 2547 $group = & $groups_template->group;2546 $group =groups_get_current_group(); 2548 2547 2549 2548 /** 2550 2549 * Filters a URL for banning a member from a group. … … 2579 2578 * @return string 2580 2579 */ 2581 2580 function bp_get_group_member_unban_link( $user_id = 0, $group = false ) { 2582 global $members_template , $groups_template;2581 global $members_template; 2583 2582 2584 2583 if ( !$user_id ) 2585 2584 $user_id = $members_template->member->user_id; 2586 2585 2587 2586 if ( empty( $group ) ) 2588 $group = & $groups_template->group;2587 $group =groups_get_current_group(); 2589 2588 2590 2589 /** 2591 2590 * Filters a URL for unbanning a member from a group. … … 2620 2619 * @return string 2621 2620 */ 2622 2621 function bp_get_group_member_remove_link( $user_id = 0, $group = false ) { 2623 global $groups_template; 2624 2622 2625 2623 if ( empty( $group ) ) 2626 $group = & $groups_template->group;2624 $group =groups_get_current_group(); 2627 2625 2628 2626 /** 2629 2627 * Filters a URL for removing a member from a group. … … 2929 2927 * @return string 2930 2928 */ 2931 2929 function bp_get_group_accept_invite_link( $group = false ) { 2932 global $groups_template; 2933 2930 2934 2931 if ( empty( $group ) ) 2935 $group = & $groups_template->group;2932 $group =groups_get_current_group(); 2936 2933 2937 2934 $bp = buddypress(); 2938 2935