diff options
author | Yehuda Hassine <yehuda@myinbox.in> | 2019-04-22 00:23:38 +0300 |
---|---|---|
committer | Yehuda Hassine <yehuda@myinbox.in> | 2019-04-22 00:23:38 +0300 |
commit | 7781aa65cef32d8c8196979edb21ec4551e5b904 (patch) | |
tree | 2a7944400ede6a9a574a83ce89d010b26628fe02 /Postman/PostmanInstaller.php | |
parent | dad9828e8c866e50d6e44aebd103f1ab97409a5b (diff) | |
download | Post-SMTP-7781aa65cef32d8c8196979edb21ec4551e5b904.zip |
better meta query,bugs, optimization
Diffstat (limited to 'Postman/PostmanInstaller.php')
-rw-r--r-- | Postman/PostmanInstaller.php | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Postman/PostmanInstaller.php b/Postman/PostmanInstaller.php index f011251..f3616f2 100644 --- a/Postman/PostmanInstaller.php +++ b/Postman/PostmanInstaller.php @@ -24,6 +24,7 @@ class PostmanInstaller { * Handle activation of the plugin */ public function activatePostman() { + delete_option( 'postman_release_version' ); $options = get_option( PostmanOptions::POSTMAN_OPTIONS ); $args = array( 'fallback_smtp_enabled' => 'no', @@ -41,10 +42,6 @@ class PostmanInstaller { if ( function_exists( 'is_multisite' ) && is_multisite() ) { -/* $role = get_role( Postman::ADMINISTRATOR_ROLE_NAME ); - $role->add_cap( Postman::MANAGE_POSTMAN_CAPABILITY_NAME ); - $role->add_cap( Postman::MANAGE_POSTMAN_CAPABILITY_LOGS );*/ - $options['post_smtp_allow_overwrite'] = '1'; update_site_option( PostmanOptions::POSTMAN_NETWORK_OPTIONS, $options ); |