summaryrefslogtreecommitdiff
path: root/Postman/PostmanInstaller.php
diff options
context:
space:
mode:
authoryehuda <yehuda@myinbox.in>2019-05-16 12:15:39 +0300
committeryehuda <yehuda@myinbox.in>2019-05-16 12:15:39 +0300
commit6b0c4d5d97cac613ad8218fc9f0779eec63c28e3 (patch)
tree3ac2513ad5cb08650b03f55d837cf6b1d578dd21 /Postman/PostmanInstaller.php
parentc88e7ad0b42cefd8fb7b509c8c2e355f567d9434 (diff)
parent09ad01149ef5981407149bc3c9502058482fb419 (diff)
downloadPost-SMTP-6b0c4d5d97cac613ad8218fc9f0779eec63c28e3.zip
Merge remote-tracking branch 'origin/dev'
Diffstat (limited to 'Postman/PostmanInstaller.php')
-rw-r--r--Postman/PostmanInstaller.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/Postman/PostmanInstaller.php b/Postman/PostmanInstaller.php
index f011251..0563679 100644
--- a/Postman/PostmanInstaller.php
+++ b/Postman/PostmanInstaller.php
@@ -24,6 +24,9 @@ class PostmanInstaller {
* Handle activation of the plugin
*/
public function activatePostman() {
+ delete_option( 'postman_release_version' );
+ delete_option( 'postman_dismiss_donation' );
+
$options = get_option( PostmanOptions::POSTMAN_OPTIONS );
$args = array(
'fallback_smtp_enabled' => 'no',
@@ -41,10 +44,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 );