summaryrefslogtreecommitdiff
path: root/Postman/PostmanInstaller.php
diff options
context:
space:
mode:
authoryehudah <yehudah@b8457f37-d9ea-0310-8a92-e5e31aec5664>2019-05-15 12:14:32 +0000
committeryehudah <yehudah@b8457f37-d9ea-0310-8a92-e5e31aec5664>2019-05-15 12:14:32 +0000
commit38153c0f3e739f3d89a1a7734fd7d199bf457fab (patch)
tree28e19f4e091d5182a2c63bc98377e5381b0043ac /Postman/PostmanInstaller.php
parent942aa536210fe204a2d097eb8878c1d690e0547b (diff)
downloadPost-SMTP-38153c0f3e739f3d89a1a7734fd7d199bf457fab.zip
= 2.0 - 2019-05-15
* New: Mailer Type - Added an option to send without overwrite the 'wp_mail' function, better compability to WordPress delivery. hopefully will be the default in the future. * Updated: Sendgrid API was upgraded and rewritten to the new version. * Fixed: Message-Id header was missing on SMTP * Fixed: Email logger optimization - better query for large amount of records. * Fixed: The localization was fixed to match translate.wordpress.org translation system ( Thanks to Niels de Blaauw from Level-Level ). * Fixed: Code and optimization ( Thanks to Niels de Blaauw from Level-Level ).
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 );