Skip to:
Content

BuddyPress.org

Ticket #8480: 8480.patch

File 8480.patch, 1.3 KB (added by imath, 6 months ago)
  • src/bp-members/bp-members-invitations.php

    diff --git src/bp-members/bp-members-invitations.php src/bp-members/bp-members-invitations.php
    index eb61e0cab..4a7951f24 100644
    add_action( 'bp_setup_nav', 'bp_members_invitations_setup_nav' ); 
    7777 *                               signup data, xprofile data, etc).
    7878 * @return bool Whether or not to send the activation key.
    7979 */
    80 function bp_members_invitations_cancel_activation_email( $send, $user_id, $user_email, $activation_key, $usermeta ) {
     80function bp_members_invitations_cancel_activation_email( $send, $user_id = 0, $user_email = '', $activation_key = '', $usermeta = array() ) {
    8181        $invite = bp_members_invitations_get_invites(
    8282                array(
    8383                        'invitee_email' => $user_email,
    add_filter( 'bp_core_signup_send_activation_key', 'bp_members_invitations_cancel 
    105105 * @param string          $user_password Password requested by the user.
    106106 * @param string          $user_email    Email address requested by the user.
    107107 */
    108 function bp_members_invitations_complete_signup( $user_id, $user_login, $user_password, $user_email ) {
     108function bp_members_invitations_complete_signup( $user_id, $user_login = '', $user_password = '', $user_email = '' ) {
    109109        if ( ! $user_id ) {
    110110                return;
    111111        }