diff --git a/Postman/PostmanInstaller.php b/Postman/PostmanInstaller.php index 9ac09748..c5d0b62f 100644 --- a/Postman/PostmanInstaller.php +++ b/Postman/PostmanInstaller.php @@ -83,7 +83,7 @@ public function activatePostman() { } } - if ( function_exists( 'is_multisite' ) && is_multisite() ) { + if ( is_multisite() && is_network_admin() && is_plugin_active_for_network( plugin_basename( __FILE__ ) ) ) { $network_options = get_site_option( PostmanOptions::POSTMAN_NETWORK_OPTIONS ); @@ -120,7 +120,7 @@ public function activatePostman() { * Handle deactivation of the plugin */ public function deactivatePostman() { - if ( function_exists( 'is_multisite' ) && is_multisite() ) { + if ( is_multisite() && is_network_admin() && is_plugin_active_for_network( plugin_basename( __FILE__ ) ) ) { // handle network deactivation // from https://wordpress.org/support/topic/new-function-wp_get_sites?replies=11 // run the deactivation function for each blog id diff --git a/postman-smtp.php b/postman-smtp.php index b03faa48..38bc4088 100644 --- a/postman-smtp.php +++ b/postman-smtp.php @@ -6,7 +6,7 @@ * Plugin Name: Post SMTP * Plugin URI: https://wordpress.org/plugins/post-smtp/ * Description: Email not reliable? Post SMTP is the first and only WordPress SMTP plugin to implement OAuth 2.0 for Gmail, Hotmail and Yahoo Mail. Setup is a breeze with the Configuration Wizard and integrated Port Tester. Enjoy worry-free delivery even if your password changes! - * Version: 3.2.0 + * Version: 3.2.1 * Author: Post SMTP * Text Domain: post-smtp * Author URI: https://postmansmtp.com