diff --git src/bp-core/admin/bp-core-admin-settings.php src/bp-core/admin/bp-core-admin-settings.php
index e2f4cffcc..e71f34d4a 100644
|
|
function bp_admin_setting_callback_members_invitations() { |
210 | 210 | */ |
211 | 211 | function bp_admin_setting_callback_membership_requests() { |
212 | 212 | ?> |
213 | | <input id="bp-enable-membership-requests" name="bp-enable-membership-requests" type="checkbox" value="1" <?php checked( bp_get_membership_requests_required( 'raw' ) ); ?> <?php if ( bp_get_signup_allowed() ) { echo 'disabled="disabled"'; } ?> /> |
| 213 | <input id="bp-enable-membership-requests" name="bp-enable-membership-requests" type="checkbox" value="1" <?php checked( bp_get_membership_requests_required( 'raw' ) ); ?> <?php disabled( bp_get_signup_allowed() ); ?> /> |
214 | 214 | <label for="bp-enable-membership-requests"><?php esc_html_e( 'Allow visitors to request site membership. If enabled, an administrator must approve each new site membership request.', 'buddypress' ); ?></label> |
215 | 215 | <?php if ( bp_get_signup_allowed() ) : ?> |
216 | 216 | <p class="description"><?php esc_html_e( 'Public registration is currently enabled. If you wish to require approval for new memberships, disable public registration and enable the membership requests feature.', 'buddypress' ); ?></p> |
diff --git src/bp-core/bp-core-filters.php src/bp-core/bp-core-filters.php
index 622c2bbce..49dbb3cf3 100644
|
|
function bp_core_activation_signup_blog_notification( $domain, $path, $title, $u |
501 | 501 | * @param string $title The site title. |
502 | 502 | */ |
503 | 503 | if ( apply_filters( 'bp_core_signup_send_activation_key_multisite_blog', true, $user, $user_email, $key, $is_signup_resend, $domain, $path, $title ) ) { |
504 | | |
505 | 504 | bp_send_email( 'core-user-registration-with-blog', array( array( $user_email => $salutation ) ), $args ); |
506 | | |
507 | 505 | } |
508 | 506 | |
509 | 507 | // Return false to stop the original WPMU function from continuing. |
… |
… |
function bp_core_activation_signup_user_notification( $user, $user_email, $key, |
590 | 588 | * @param bool $is_signup_resend Is the site admin sending this email? |
591 | 589 | */ |
592 | 590 | if ( apply_filters( 'bp_core_signup_send_activation_key_multisite', true, $user, $user_email, $key, $is_signup_resend ) ) { |
593 | | |
594 | 591 | bp_send_email( 'core-user-registration', array( array( $user_email => $salutation ) ), $args ); |
595 | | |
596 | 592 | } |
597 | 593 | |
598 | 594 | // Return false to stop the original WPMU function from continuing. |
diff --git src/bp-core/bp-core-functions.php src/bp-core/bp-core-functions.php
index 3b7cfcc58..73c6a9d27 100644
|
|
function bp_email_get_type_schema( $field = 'description' ) { |
4162 | 4162 | ), |
4163 | 4163 | ); |
4164 | 4164 | |
4165 | | $members_membership_request= array( |
| 4165 | $members_membership_request = array( |
4166 | 4166 | 'description' => __( 'Someone has requested membership on this site.', 'buddypress' ), |
4167 | 4167 | 'named_salutation' => true, |
4168 | 4168 | 'unsubscribe' => array( |
… |
… |
function bp_email_get_type_schema( $field = 'description' ) { |
4171 | 4171 | ), |
4172 | 4172 | ); |
4173 | 4173 | |
4174 | | $members_membership_request_rejected= array( |
| 4174 | $members_membership_request_rejected = array( |
4175 | 4175 | 'description' => __( 'A site membership request has been rejected.', 'buddypress' ), |
4176 | 4176 | 'named_salutation' => false, |
4177 | 4177 | 'unsubscribe' => false, |
diff --git src/bp-members/bp-members-admin.php src/bp-members/bp-members-admin.php
index 3156cda01..30949496a 100644
|
|
function bp_members_admin_preview_signup_profile_info( $signup_field_labels = ar |
178 | 178 | <?php if ( bp_members_site_requests_enabled() ) : ?> |
179 | 179 | <h2><?php esc_html_e( 'Site Request Information', 'buddypress' ); ?></h2> |
180 | 180 | <table class="signup-profile-data-drawer wp-list-table widefat fixed striped"> |
181 | | <?php if ( ! empty( $signup_object->domain ) || ! empty( $signup_object->path ) ): ?> |
| 181 | <?php if ( ! empty( $signup_object->domain ) || ! empty( $signup_object->path ) ) : ?> |
182 | 182 | <tr> |
183 | 183 | <td class="column-fields"><?php esc_html_e( 'Site Title', 'buddypress' ); ?></td> |
184 | 184 | <td><?php echo esc_html( $signup_object->title ); ?></td> |
diff --git src/bp-members/bp-members-membership-requests.php src/bp-members/bp-members-membership-requests.php
index 54c6159ff..8d4e0e148 100644
|
|
add_filter( 'bp_core_signup_send_activation_key_multisite_blog', 'bp_members_mem |
144 | 144 | * |
145 | 145 | * @since 10.0.0 |
146 | 146 | * |
147 | | * @param BP_Signup $signup The signup object that has been created. |
| 147 | * @param BP_Signup $signup The signup object that has been created. |
148 | 148 | */ |
149 | 149 | function bp_members_membership_requests_notify_site_admins( $signup ) { |
150 | 150 | |
diff --git src/bp-members/bp-members-notifications.php src/bp-members/bp-members-notifications.php
index 08285bcb6..18ec384b4 100644
|
|
function members_screen_notification_settings() { |
256 | 256 | <tr id="members-notification-settings-invitation_accepted"> |
257 | 257 | <td></td> |
258 | 258 | <td><?php echo esc_html_x( 'Someone accepts your membership invitation', 'Member settings on notification settings page', 'buddypress' ); ?></td> |
259 | | <td class="yes"><input type="radio" name="notifications[notification_members_invitation_accepted]" id="notification-members-invitation-accepted-yes" value="yes" <?php checked( $allow_acceptance_emails, 'yes', true ) ?>/><label for="notification-members-invitation-accepted-yes" class="bp-screen-reader-text"><?php |
| 259 | <td class="yes"><input type="radio" name="notifications[notification_members_invitation_accepted]" id="notification-members-invitation-accepted-yes" value="yes" <?php checked( $allow_acceptance_emails, 'yes', true ) ?>/><label for="notification-members-invitation-accepted-yes" class="bp-screen-reader-text"> |
| 260 | <?php |
260 | 261 | /* translators: accessibility text */ |
261 | 262 | esc_html_e( 'Yes, send email', 'buddypress' ); |
262 | | ?></label></td> |
263 | | <td class="no"><input type="radio" name="notifications[notification_members_invitation_accepted]" id="notification-members-invitation-accepted-no" value="no" <?php checked( $allow_acceptance_emails, 'no', true ) ?>/><label for="notification-members-invitation-accepted-no" class="bp-screen-reader-text"><?php |
| 263 | ?> |
| 264 | </label></td> |
| 265 | <td class="no"><input type="radio" name="notifications[notification_members_invitation_accepted]" id="notification-members-invitation-accepted-no" value="no" <?php checked( $allow_acceptance_emails, 'no', true ) ?>/><label for="notification-members-invitation-accepted-no" class="bp-screen-reader-text"> |
| 266 | <?php |
264 | 267 | /* translators: accessibility text */ |
265 | 268 | esc_html_e( 'No, do not send email', 'buddypress' ); |
266 | | ?></label></td> |
| 269 | ?> |
| 270 | </label></td> |
267 | 271 | </tr> |
268 | 272 | <?php |
269 | 273 | endif; |
… |
… |
function members_screen_notification_settings() { |
276 | 280 | <tr id="members-notification-settings-submitted_membership_request"> |
277 | 281 | <td></td> |
278 | 282 | <td><?php echo esc_html_x( 'Someone has requested site membership', 'Member settings on notification settings page', 'buddypress' ) ?></td> |
279 | | <td class="yes"><input type="radio" name="notifications[notification_members_membership_request]" id="notification-members-submitted_membership_request-yes" value="yes" <?php checked( $allow_request_emails, 'yes', true ) ?>/><label for="notification-members-submitted_membership_request-yes" class="bp-screen-reader-text"><?php |
| 283 | <td class="yes"><input type="radio" name="notifications[notification_members_membership_request]" id="notification-members-submitted_membership_request-yes" value="yes" <?php checked( $allow_request_emails, 'yes', true ) ?>/><label for="notification-members-submitted_membership_request-yes" class="bp-screen-reader-text"> |
| 284 | <?php |
280 | 285 | /* translators: accessibility text */ |
281 | 286 | esc_html_e( 'Yes, send email', 'buddypress' ); |
282 | | ?></label></td> |
283 | | <td class="no"><input type="radio" name="notifications[notification_members_membership_request]" id="notification-members-submitted_membership_request-no" value="no" <?php checked( $allow_request_emails, 'no', true ) ?>/><label for="notification-members-submitted_membership_request-no" class="bp-screen-reader-text"><?php |
| 287 | ?> |
| 288 | </label></td> |
| 289 | <td class="no"><input type="radio" name="notifications[notification_members_membership_request]" id="notification-members-submitted_membership_request-no" value="no" <?php checked( $allow_request_emails, 'no', true ) ?>/><label for="notification-members-submitted_membership_request-no" class="bp-screen-reader-text"> |
| 290 | <?php |
284 | 291 | /* translators: accessibility text */ |
285 | 292 | esc_html_e( 'No, do not send email', 'buddypress' ); |
286 | | ?></label></td> |
| 293 | ?> |
| 294 | </label></td> |
287 | 295 | </tr> |
288 | 296 | <?php |
289 | 297 | endif; |
diff --git src/bp-members/classes/class-bp-members-list-table.php src/bp-members/classes/class-bp-members-list-table.php
index 0dcf21d7c..168bee2e9 100644
|
|
class BP_Members_List_Table extends WP_Users_List_Table { |
377 | 377 | ) |
378 | 378 | ); |
379 | 379 | |
380 | | foreach( $field_groups as $field_group ) { |
381 | | foreach( $field_group->fields as $field ) { |
| 380 | foreach ( $field_groups as $field_group ) { |
| 381 | foreach ( $field_group->fields as $field ) { |
382 | 382 | $this->signup_field_labels[ $field->id ] = $field->name; |
383 | 383 | } |
384 | 384 | } |
diff --git src/bp-members/classes/class-bp-members-ms-list-table.php src/bp-members/classes/class-bp-members-ms-list-table.php
index 0dc4b5766..bb687d9a4 100644
|
|
class BP_Members_MS_List_Table extends WP_MS_Users_List_Table { |
369 | 369 | ) |
370 | 370 | ); |
371 | 371 | |
372 | | foreach( $field_groups as $field_group ) { |
373 | | foreach( $field_group->fields as $field ) { |
| 372 | foreach ( $field_groups as $field_group ) { |
| 373 | foreach ( $field_group->fields as $field ) { |
374 | 374 | $this->signup_field_labels[ $field->id ] = $field->name; |
375 | 375 | } |
376 | 376 | } |