Skip to:
Content

BuddyPress.org

Changeset 13173


Ignore:
Timestamp:
12/10/2021 11:17:02 PM (2 years ago)
Author:
imath
Message:

Improve the callback used to output the membership request setting

  • add missing buddypress text domain for l10n functions.
  • make sure the specific multisite explanations about the feature are rightly located into this callback instead of the site invitations setting one.

See #8582

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/admin/bp-core-admin-settings.php

    r13166 r13173  
    193193    <label for="bp-enable-members-invitations"><?php _e( 'Allow registered members to invite people to join this network', 'buddypress' ); ?></label>
    194194    <?php if ( ! bp_get_signup_allowed() ) : ?>
    195         <?php if ( is_multisite() ) : ?>
    196             <p class="description"><?php esc_html_e( 'With a WP multisite setup, to require membership requests for new signups, choose one of the following two options from the Network Settings > Registration Settings pane:' ); ?><p>
    197                 <ul>
    198                     <li><p class="description"><?php esc_html_e( 'To allow the submission of membership requests but not allow site creation requests, select "Registration is disabled".' ) ?></p></li>
    199                     <li><p class="description"><?php esc_html_e( 'To allow the submission of membership requests and to allow new sites to be created by your users, choose "Logged in users may register new sites".' ) ?></p></li>
    200                 </ul>
    201             <p class="description"><?php esc_html_e( 'The other two options, "User accounts may be registered" and "Both sites and user accounts can be registered," are open in nature and membership requests will not be enabled if one of those options is selected.' ); ?><p>
    202         <?php else : ?>
    203195        <p class="description"><?php esc_html_e( 'Public registration is currently disabled. However, invitees will still be able to register if network invitations are enabled.', 'buddypress' ); ?></p>
    204         <?php endif; ?>
    205196    <?php endif; ?>
    206197    <?php
     
    223214    <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>
    224215    <?php if ( bp_get_signup_allowed() ) : ?>
    225         <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>
     216        <?php if ( is_multisite() ) : ?>
     217            <p class="description"><?php esc_html_e( 'With a WP multisite setup, to require membership requests for new signups, choose one of the following two options from the Network Settings > Registration Settings pane:', 'buddypress' ); ?><p>
     218                <ul>
     219                    <li><p class="description"><?php esc_html_e( 'To allow the submission of membership requests but not allow site creation requests, select "Registration is disabled".', 'buddypress' ) ?></p></li>
     220                    <li><p class="description"><?php esc_html_e( 'To allow the submission of membership requests and to allow new sites to be created by your users, choose "Logged in users may register new sites".', 'buddypress' ) ?></p></li>
     221                </ul>
     222            <p class="description"><?php esc_html_e( 'The other two options, "User accounts may be registered" and "Both sites and user accounts can be registered," are open in nature and membership requests will not be enabled if one of those options is selected.', 'buddypress' ); ?><p>
     223        <?php else : ?>
     224            <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>
     225        <?php endif; ?>
    226226    <?php endif; ?>
    227227    <?php
Note: See TracChangeset for help on using the changeset viewer.