Skip to:
Content

BuddyPress.org


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

Emails: install multisite-specific emails on multisite only.

Fixes #7480

File:
1 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 ) {
Note: See TracChangeset for help on using the changeset viewer.