Skip to:
Content

BuddyPress.org

Changeset 11787


Ignore:
Timestamp:
01/02/2018 05:36:05 PM (8 years ago)
Author:
djpaul
Message:

Emails: install multisite-specific emails on multisite only.

Fixes #7480

Location:
trunk/src/bp-core
Files:
2 edited

Legend:

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

    r11095 r11787  
    507507    // Add these emails to the database.
    508508    foreach ( $emails as $id => $email ) {
     509
     510        // Some emails are multisite-only.
     511        if ( ! is_multisite() && isset( $email['args'] ) && ! empty( $email['args']['multisite'] ) ) {
     512            continue;
     513        }
     514
    509515        $post_id = wp_insert_post( bp_parse_args( $email, $defaults, 'install_email_' . $id ) );
    510516        if ( ! $post_id ) {
  • trunk/src/bp-core/bp-core-functions.php

    r11786 r11787  
    33773377            /* translators: do not remove {} brackets or translate its contents. */
    33783378            'post_excerpt' => __( "Thanks for registering!\n\nTo complete the activation of your account, go to the following link: {{{activate.url}}}", 'buddypress' ),
     3379            'args'         => array(
     3380                'multisite' => true,
     3381            ),
    33793382        ),
    33803383        'core-user-registration-with-blog' => array(
     
    33853388            /* translators: do not remove {} brackets or translate its contents. */
    33863389            'post_excerpt' => __( "Thanks for registering!\n\nTo complete the activation of your account and site, go to the following link: {{{activate-site.url}}}\n\nAfter you activate, you can visit your site at {{{user-site.url}}}.", 'buddypress' ),
     3390            'args'         => array(
     3391                'multisite' => true,
     3392            ),
    33873393        ),
    33883394        'friends-request' => array(
Note: See TracChangeset for help on using the changeset viewer.