Changeset 12929
- Timestamp:
- 04/28/2021 11:52:39 PM (3 years ago)
- Location:
- trunk/src/bp-core
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/bp-core-functions.php
r12912 r12929 703 703 // Register and Activate are not components, but need pages when 704 704 // registration is enabled. 705 if ( bp_get_signup_allowed() ) {705 if ( bp_get_signup_allowed() || bp_get_members_invitations_allowed() ) { 706 706 foreach ( array( 'register', 'activate' ) as $slug ) { 707 707 if ( ! isset( $pages[ $slug ] ) ) { … … 3473 3473 if ( 'settings-verify-email-change' === $email_type && isset( $args['tokens']['displayname'] ) ) { 3474 3474 $email->set_to( $to, $args['tokens']['displayname'] ); 3475 // Emails sent to nonmembers will have no recipient.name populated. 3476 } else if ( 'bp-members-invitation' === $email_type ) { 3477 $email->set_to( $to, $to ); 3475 3478 } else { 3476 3479 $email->set_to( $to ); … … 3816 3819 'post_title' => __( '[{{{site.name}}}] You have an invitation to the group: "{{group.name}}"', 'buddypress' ), 3817 3820 /* translators: do not remove {} brackets or translate its contents. */ 3818 'post_content' => __( "<a href=\"{{{inviter.url}}}\">{{inviter.name}}</a> has invited you to join the group: "{{group.name}}".\n {{invite.message}}\n<a href=\"{{{invites.url}}}\">Go here to accept your invitation</a> or <a href=\"{{{group.url}}}\">visit the group</a> to learn more.", 'buddypress' ),3819 /* translators: do not remove {} brackets or translate its contents. */ 3820 'post_excerpt' => __( "{{inviter.name}} has invited you to join the group: \"{{group.name}}\".\n\n To accept your invitation, visit: {{{invites.url}}}\n\nTo learn more about the group, visit: {{{group.url}}}.\nTo view {{inviter.name}}'s profile, visit: {{{inviter.url}}}", 'buddypress' ),3821 'post_content' => __( "<a href=\"{{{inviter.url}}}\">{{inviter.name}}</a> has invited you to join the group: "{{group.name}}".\n\n{{invite.message}}\n\n<a href=\"{{{invites.url}}}\">Go here to accept your invitation</a> or <a href=\"{{{group.url}}}\">visit the group</a> to learn more.", 'buddypress' ), 3822 /* translators: do not remove {} brackets or translate its contents. */ 3823 'post_excerpt' => __( "{{inviter.name}} has invited you to join the group: \"{{group.name}}\".\n\n{{invite.message}}\n\nTo accept your invitation, visit: {{{invites.url}}}\n\nTo learn more about the group, visit: {{{group.url}}}.\nTo view {{inviter.name}}'s profile, visit: {{{inviter.url}}}", 'buddypress' ), 3821 3824 ), 3822 3825 'groups-member-promoted' => array( … … 3867 3870 /* translators: do not remove {} brackets or translate its contents. */ 3868 3871 'post_excerpt' => __( "Your membership request for the group \"{{group.name}}\" has been rejected.\n\nTo request membership again, visit: {{{group.url}}}", 'buddypress' ), 3872 ), 3873 'bp-members-invitation' => array( 3874 /* translators: do not remove {} brackets or translate its contents. */ 3875 'post_title' => __( '{{inviter.name}} has invited you to join {{site.name}}', 'buddypress' ), 3876 /* translators: do not remove {} brackets or translate its contents. */ 3877 'post_content' => __( "<a href=\"{{{inviter.url}}}\">{{inviter.name}}</a> has invited you to join the site: "{{site.name}}".\n\n{{usermessage}}\n\n<a href=\"{{{invite.accept_url}}}\">Accept your invitation</a> or <a href=\"{{{site.url}}}\">visit the site</a> to learn more.", 'buddypress' ), 3878 /* translators: do not remove {} brackets or translate its contents. */ 3879 'post_excerpt' => __( "{{inviter.name}} has invited you to join the site \"{{site.name}}\".\n\n{{usermessage}}\n\nTo accept your invitation, visit: {{{invite.accept_url}}}\n\nTo learn more about the site, visit: {{{site.url}}}.\nTo view {{inviter.name}}'s profile, visit: {{{inviter.url}}}", 'buddypress' ), 3869 3880 ), 3870 3881 ) ); … … 4011 4022 $core_user_activation = array( 4012 4023 'description' => __( 'Recipient has successfully activated an account.', 'buddypress' ), 4024 ); 4025 4026 $members_invitation = array( 4027 'description' => __( 'A site member has sent a site invitation to the recipient.', 'buddypress' ), 4028 'unsubscribe' => array( 4029 'meta_key' => 'notification_bp_members_invite', 4030 'message' => __( 'You will no longer receive emails when you are invited to join this site.', 'buddypress' ), 4031 ), 4013 4032 ); 4014 4033 … … 4031 4050 'groups-membership-request-rejected' => $groups_membership_request_rejected, 4032 4051 'core-user-activation' => $core_user_activation, 4052 'bp-members-invitation' => $members_invitation, 4033 4053 ); 4034 4054 … … 4163 4183 * @type string $user_id The ID of the user to whom the notification is sent. 4164 4184 * @type string $redirect_to Optional. The url to which the user will be redirected. Default is the activity directory. 4185 * @type string $email Optional. The email address of the user to whom the notification is sent. 4165 4186 * } 4166 4187 * @return string The unsubscribe link. -
trunk/src/bp-core/bp-core-update.php
r12905 r12929 696 696 if ( isset( $emails['core-user-activation'] ) ) { 697 697 $new_emails['core-user-activation'] = $emails['core-user-activation']; 698 } 699 700 if ( isset( $emails['bp-members-invitation'] ) ) { 701 $new_emails['bp-members-invitation'] = $emails['bp-members-invitation']; 698 702 } 699 703
Note: See TracChangeset
for help on using the changeset viewer.