Ticket #4161: 4161.trunk.01.diff
File 4161.trunk.01.diff, 2.3 KB (added by , 12 years ago) |
---|
-
bp-groups/bp-groups-template.php
457 457 if ( empty( $group ) ) 458 458 $group =& $groups_template->group; 459 459 460 return apply_filters( 'bp_get_group_admin_permalink', trailingslashit( bp_get_group_permalink( $group ) . ' /admin' ) );460 return apply_filters( 'bp_get_group_admin_permalink', trailingslashit( bp_get_group_permalink( $group ) . 'admin' ) ); 461 461 } 462 462 463 463 function bp_group_slug() { … … 2416 2416 function bp_get_group_avatar_delete_link() { 2417 2417 global $bp; 2418 2418 2419 return apply_filters( 'bp_get_group_avatar_delete_link', wp_nonce_url( bp_get_group_permalink( $bp->groups->current_group ) . ' /admin/group-avatar/delete', 'bp_group_avatar_delete' ) );2419 return apply_filters( 'bp_get_group_avatar_delete_link', wp_nonce_url( bp_get_group_permalink( $bp->groups->current_group ) . 'admin/group-avatar/delete', 'bp_group_avatar_delete' ) ); 2420 2420 } 2421 2421 2422 2422 function bp_group_avatar_edit_form() { … … 2573 2573 function bp_get_group_request_reject_link() { 2574 2574 global $requests_template, $groups_template; 2575 2575 2576 return apply_filters( 'bp_get_group_request_reject_link', wp_nonce_url( bp_get_group_permalink( $groups_template->group ) . ' /admin/membership-requests/reject/' . $requests_template->request->id, 'groups_reject_membership_request' ) );2576 return apply_filters( 'bp_get_group_request_reject_link', wp_nonce_url( bp_get_group_permalink( $groups_template->group ) . 'admin/membership-requests/reject/' . $requests_template->request->id, 'groups_reject_membership_request' ) ); 2577 2577 } 2578 2578 2579 2579 function bp_group_request_accept_link() { … … 2582 2582 function bp_get_group_request_accept_link() { 2583 2583 global $requests_template, $groups_template; 2584 2584 2585 return apply_filters( 'bp_get_group_request_accept_link', wp_nonce_url( bp_get_group_permalink( $groups_template->group ) . ' /admin/membership-requests/accept/' . $requests_template->request->id, 'groups_accept_membership_request' ) );2585 return apply_filters( 'bp_get_group_request_accept_link', wp_nonce_url( bp_get_group_permalink( $groups_template->group ) . 'admin/membership-requests/accept/' . $requests_template->request->id, 'groups_accept_membership_request' ) ); 2586 2586 } 2587 2587 2588 2588 function bp_group_request_user_link() {