Changeset 11598
- Timestamp:
- 06/21/2017 09:03:42 PM (7 years ago)
- Location:
- trunk/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-activity/bp-activity-template.php
r11564 r11598 2091 2091 */ 2092 2092 function bp_get_activity_comment_delete_link() { 2093 $link = wp_nonce_url( bp_get_activity_directory_permalink() . 'delete/' . bp_get_activity_comment_id() . '?cid=' . bp_get_activity_comment_id(), 'bp_activity_delete_link' );2093 $link = wp_nonce_url( trailingslashit( bp_get_activity_directory_permalink() . 'delete/' . bp_get_activity_comment_id() ) . '?cid=' . bp_get_activity_comment_id(), 'bp_activity_delete_link' ); 2094 2094 2095 2095 /** -
trunk/src/bp-friends/bp-friends-template.php
r11447 r11598 564 564 * @param int $friendship_id ID of the friendship. 565 565 */ 566 return apply_filters( 'bp_get_friend_accept_request_link', wp_nonce_url( bp_loggedin_user_domain() . bp_get_friends_slug() . '/requests/accept/' . $friendship_id, 'friends_accept_friendship' ), $friendship_id );566 return apply_filters( 'bp_get_friend_accept_request_link', wp_nonce_url( trailingslashit( bp_loggedin_user_domain() . bp_get_friends_slug() . '/requests/accept/' . $friendship_id ), 'friends_accept_friendship' ), $friendship_id ); 567 567 } 568 568 … … 599 599 * @param int $friendship_id ID of the friendship. 600 600 */ 601 return apply_filters( 'bp_get_friend_reject_request_link', wp_nonce_url( bp_loggedin_user_domain() . bp_get_friends_slug() . '/requests/reject/' . $friendship_id, 'friends_reject_friendship' ), $friendship_id );601 return apply_filters( 'bp_get_friend_reject_request_link', wp_nonce_url( trailingslashit( bp_loggedin_user_domain() . bp_get_friends_slug() . '/requests/reject/' . $friendship_id ), 'friends_reject_friendship' ), $friendship_id ); 602 602 } 603 603 -
trunk/src/bp-groups/bp-groups-template.php
r11595 r11598 1801 1801 * @param object $group Group object. 1802 1802 */ 1803 return apply_filters( 'bp_get_group_all_members_permalink', bp_get_group_permalink( $group ) . 'members', $group );1803 return apply_filters( 'bp_get_group_all_members_permalink', trailingslashit( bp_get_group_permalink( $group ) . 'members' ), $group ); 1804 1804 } 1805 1805 … … 2061 2061 * @param object $group Group object. 2062 2062 */ 2063 return apply_filters( 'bp_get_group_forum_permalink', bp_get_group_permalink( $group ) . 'forum', $group );2063 return apply_filters( 'bp_get_group_forum_permalink', trailingslashit( bp_get_group_permalink( $group ) . 'forum' ), $group ); 2064 2064 } 2065 2065 … … 2621 2621 * @param string $value URL to use for promoting a user to moderator. 2622 2622 */ 2623 return apply_filters( 'bp_get_group_member_promote_mod_link', wp_nonce_url( bp_get_group_permalink( $group ) . 'admin/manage-members/promote/mod/' . $user_id, 'groups_promote_member' ) );2623 return apply_filters( 'bp_get_group_member_promote_mod_link', wp_nonce_url( trailingslashit( bp_get_group_permalink( $group ) . 'admin/manage-members/promote/mod/' . $user_id ), 'groups_promote_member' ) ); 2624 2624 } 2625 2625 … … 2664 2664 * @param string $value URL to use for promoting a user to admin. 2665 2665 */ 2666 return apply_filters( 'bp_get_group_member_promote_admin_link', wp_nonce_url( bp_get_group_permalink( $group ) . 'admin/manage-members/promote/admin/' . $user_id, 'groups_promote_member' ) );2666 return apply_filters( 'bp_get_group_member_promote_admin_link', wp_nonce_url( trailingslashit( bp_get_group_permalink( $group ) . 'admin/manage-members/promote/admin/' . $user_id ), 'groups_promote_member' ) ); 2667 2667 } 2668 2668 … … 2714 2714 * @param object $group Group object. 2715 2715 */ 2716 return apply_filters( 'bp_get_group_member_demote_link', wp_nonce_url( bp_get_group_permalink( $group ) . 'admin/manage-members/demote/' . $user_id, 'groups_demote_member' ), $group );2716 return apply_filters( 'bp_get_group_member_demote_link', wp_nonce_url( trailingslashit( bp_get_group_permalink( $group ) . 'admin/manage-members/demote/' . $user_id ), 'groups_demote_member' ), $group ); 2717 2717 } 2718 2718 … … 2758 2758 * @param string $value URL to use for banning a member. 2759 2759 */ 2760 return apply_filters( 'bp_get_group_member_ban_link', wp_nonce_url( bp_get_group_permalink( $group ) . 'admin/manage-members/ban/' . $user_id, 'groups_ban_member' ) );2760 return apply_filters( 'bp_get_group_member_ban_link', wp_nonce_url( trailingslashit( bp_get_group_permalink( $group ) . 'admin/manage-members/ban/' . $user_id ), 'groups_ban_member' ) ); 2761 2761 } 2762 2762 … … 2806 2806 * @param string $value URL to use for unbanning a member. 2807 2807 */ 2808 return apply_filters( 'bp_get_group_member_unban_link', wp_nonce_url( bp_get_group_permalink( $group ) . 'admin/manage-members/unban/' . $user_id, 'groups_unban_member' ) );2808 return apply_filters( 'bp_get_group_member_unban_link', wp_nonce_url( trailingslashit( bp_get_group_permalink( $group ) . 'admin/manage-members/unban/' . $user_id ), 'groups_unban_member' ) ); 2809 2809 } 2810 2810 … … 2852 2852 * @param object $group Group object. 2853 2853 */ 2854 return apply_filters( 'bp_get_group_member_remove_link', wp_nonce_url( bp_get_group_permalink( $group ) . 'admin/manage-members/remove/' . $user_id, 'groups_remove_member' ), $group );2854 return apply_filters( 'bp_get_group_member_remove_link', wp_nonce_url( trailingslashit( bp_get_group_permalink( $group ) . 'admin/manage-members/remove/' . $user_id ), 'groups_remove_member' ), $group ); 2855 2855 } 2856 2856 … … 2979 2979 * @param object $group Group object. 2980 2980 */ 2981 return apply_filters( 'bp_group_form_action', bp_get_group_permalink( $group ) . $page, $group );2981 return apply_filters( 'bp_group_form_action', trailingslashit( bp_get_group_permalink( $group ) . $page ), $group ); 2982 2982 } 2983 2983 … … 3022 3022 * @param object $group Group object. 3023 3023 */ 3024 return apply_filters( 'bp_group_admin_form_action', bp_get_group_permalink( $group ) . 'admin/' . $page, $group );3024 return apply_filters( 'bp_group_admin_form_action', trailingslashit( bp_get_group_permalink( $group ) . 'admin/' . $page ), $group ); 3025 3025 } 3026 3026 … … 3284 3284 * @param object $group Group object. 3285 3285 */ 3286 return apply_filters( 'bp_group_leave_confirm_link', wp_nonce_url( bp_get_group_permalink( $group ) . 'leave-group/yes', 'groups_leave_group' ), $group );3286 return apply_filters( 'bp_group_leave_confirm_link', wp_nonce_url( trailingslashit( bp_get_group_permalink( $group ) . 'leave-group/yes' ), 'groups_leave_group' ), $group ); 3287 3287 } 3288 3288 … … 3356 3356 * @param object $group Group object. 3357 3357 */ 3358 return apply_filters( 'bp_group_send_invite_form_action', bp_get_group_permalink( $group ) . 'send-invites/send', $group );3358 return apply_filters( 'bp_group_send_invite_form_action', trailingslashit( bp_get_group_permalink( $group ) . 'send-invites/send' ), $group ); 3359 3359 } 3360 3360 … … 3495 3495 'wrapper_class' => 'group-button ' . $group->status, 3496 3496 'wrapper_id' => 'groupbutton-' . $group->id, 3497 'link_href' => wp_nonce_url( bp_get_group_permalink( $group ) . 'leave-group', 'groups_leave_group' ),3497 'link_href' => wp_nonce_url( trailingslashit( bp_get_group_permalink( $group ) . 'leave-group' ), 'groups_leave_group' ), 3498 3498 'link_text' => __( 'Leave Group', 'buddypress' ), 3499 3499 'link_class' => 'group-button leave-group', … … 3516 3516 'wrapper_class' => 'group-button ' . $group->status, 3517 3517 'wrapper_id' => 'groupbutton-' . $group->id, 3518 'link_href' => wp_nonce_url( bp_get_group_permalink( $group ) . 'join', 'groups_join_group' ),3518 'link_href' => wp_nonce_url( trailingslashit( bp_get_group_permalink( $group ) . 'join' ), 'groups_join_group' ), 3519 3519 'link_text' => __( 'Join Group', 'buddypress' ), 3520 3520 'link_class' => 'group-button join-group', … … 3564 3564 'wrapper_class' => 'group-button ' . $group->status, 3565 3565 'wrapper_id' => 'groupbutton-' . $group->id, 3566 'link_href' => wp_nonce_url( bp_get_group_permalink( $group ) . 'request-membership', 'groups_request_membership' ),3566 'link_href' => wp_nonce_url( trailingslashit( bp_get_group_permalink( $group ) . 'request-membership' ), 'groups_request_membership' ), 3567 3567 'link_text' => __( 'Request Membership', 'buddypress' ), 3568 3568 'link_class' => 'group-button request-membership', … … 5517 5517 * @param string $value URL to delete the group avatar. 5518 5518 */ 5519 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' ) );5519 return apply_filters( 'bp_get_group_avatar_delete_link', wp_nonce_url( trailingslashit( bp_get_group_permalink( $bp->groups->current_group ) . 'admin/group-avatar/delete' ), 'bp_group_avatar_delete' ) ); 5520 5520 } 5521 5521 … … 5648 5648 * @param string $value URL to use to reject a membership request. 5649 5649 */ 5650 return apply_filters( 'bp_get_group_request_reject_link', wp_nonce_url( bp_get_group_permalink( groups_get_current_group() ) . 'admin/membership-requests/reject/' . $requests_template->request->membership_id, 'groups_reject_membership_request' ) );5650 return apply_filters( 'bp_get_group_request_reject_link', wp_nonce_url( trailingslashit( bp_get_group_permalink( groups_get_current_group() ) . 'admin/membership-requests/reject/' . $requests_template->request->membership_id ), 'groups_reject_membership_request' ) ); 5651 5651 } 5652 5652 … … 5672 5672 * @param string $value URL to use to accept a membership request. 5673 5673 */ 5674 return apply_filters( 'bp_get_group_request_accept_link', wp_nonce_url( bp_get_group_permalink( groups_get_current_group() ) . 'admin/membership-requests/accept/' . $requests_template->request->membership_id, 'groups_accept_membership_request' ) );5674 return apply_filters( 'bp_get_group_request_accept_link', wp_nonce_url( trailingslashit( bp_get_group_permalink( groups_get_current_group() ) . 'admin/membership-requests/accept/' . $requests_template->request->membership_id ), 'groups_accept_membership_request' ) ); 5675 5675 } 5676 5676 … … 5994 5994 $uninvite_url = bp_get_groups_directory_permalink() . 'create/step/group-invites/?user_id=' . $user_id; 5995 5995 } else { 5996 $uninvite_url = bp_get_group_permalink( groups_get_current_group() ) . 'send-invites/remove/' . $user_id;5996 $uninvite_url = trailingslashit( bp_get_group_permalink( groups_get_current_group() ) . 'send-invites/remove/' . $user_id ); 5997 5997 } 5998 5998 -
trunk/src/bp-messages/bp-messages-template.php
r11582 r11598 1164 1164 * @param string $value Text indicating action being executed. 1165 1165 */ 1166 return apply_filters( 'bp_get_message_notice_delete_link', wp_nonce_url( bp_displayed_user_domain() . bp_get_messages_slug() . '/notices/delete/' . $messages_template->thread->id, 'messages_delete_thread' ) );1166 return apply_filters( 'bp_get_message_notice_delete_link', wp_nonce_url( trailingslashit( bp_displayed_user_domain() . bp_get_messages_slug() . '/notices/delete/' . $messages_template->thread->id ), 'messages_delete_thread' ) ); 1167 1167 } 1168 1168
Note: See TracChangeset
for help on using the changeset viewer.