From 942aa536210fe204a2d097eb8878c1d690e0547b Mon Sep 17 00:00:00 2001 From: yehudah Date: Thu, 28 Feb 2019 08:17:59 +0000 Subject: fix undefined 'blog_id' notice --- Postman/PostmanOptions.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Postman') 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); -- cgit v1.2.3