summaryrefslogtreecommitdiff
path: root/Postman/PostmanOptions.php
diff options
context:
space:
mode:
authoryehuda <yehuda@myinbox.in>2019-03-04 17:53:45 +0200
committeryehuda <yehuda@myinbox.in>2019-03-04 17:53:45 +0200
commit83f12e99e595b97c72f4eb77833ca652d5219b6b (patch)
tree8efcd61b2bd8942245dcfc40598f4b34df9df769 /Postman/PostmanOptions.php
parentc88e7ad0b42cefd8fb7b509c8c2e355f567d9434 (diff)
downloadPost-SMTP-83f12e99e595b97c72f4eb77833ca652d5219b6b.zip
* start switch to custom db
* remove blog_id notice
Diffstat (limited to 'Postman/PostmanOptions.php')
-rw-r--r--Postman/PostmanOptions.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/Postman/PostmanOptions.php b/Postman/PostmanOptions.php
index b6eaaf4..af88b18 100644
--- a/Postman/PostmanOptions.php
+++ b/Postman/PostmanOptions.php
@@ -174,10 +174,9 @@ if ( ! class_exists( 'PostmanOptions' ) ) {
if ( is_multisite() ) {
$network_options = get_site_option( self::POSTMAN_NETWORK_OPTIONS );
+ $blog_id = get_current_blog_id();
if ( isset( $network_options['post_smtp_global_settings'] ) ) {
$blog_id = apply_filters( 'post_smtp_default_site_option', 1 );
- } elseif ( $options && isset( $network_options['post_smtp_allow_overwrite'] ) ) {
- $blog_id = get_current_blog_id();
}
switch_to_blog($blog_id);