WP Mail Bank: WordPress SMTP Plugin & Email Logs - Version 2.0.9

Version Description

  • Major Bug Fixed for Multisite Installations
  • Major Bug Fixed for Uninstall Script
  • Minor Bugs Related to DB Version
Download this release

Release Info

Developer contact-banker
Plugin Icon 128x128 WP Mail Bank: WordPress SMTP Plugin & Email Logs
Version 2.0.9
Comparing to
See all releases

Code changes from version 2.0.8 to 2.0.9

Files changed (2) hide show
  1. readme.txt +7 -1
  2. wp-mail-bank.php +25 -16
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: contact-banker, Gallery-Bank, wordpress-empire
3
  Tags: email, gmail, mail, mail smtp, mailer, outgoing mail, phpmailer, sendmail, smtp, ssl, tls, WordPress smtp, wp smtp, wp-phpmailer, wp_mail, wp mail, mailer, mail bank
4
  Requires at least: 2.7
5
  Tested up to: 4.6.1
6
- Stable tag: 2.0.8
7
 
8
  Mail Bank reconfigures the Mail Function and provides sophisticated SMTP settings to send and log emails from your WordPress site.
9
 
@@ -365,6 +365,12 @@ If any problem occurs, please contact us at [support@tech-banker.com](mailto:sup
365
 
366
  == Changelog ==
367
 
 
 
 
 
 
 
368
  = 2.0.8 =
369
 
370
  * Js Code Optimized
3
  Tags: email, gmail, mail, mail smtp, mailer, outgoing mail, phpmailer, sendmail, smtp, ssl, tls, WordPress smtp, wp smtp, wp-phpmailer, wp_mail, wp mail, mailer, mail bank
4
  Requires at least: 2.7
5
  Tested up to: 4.6.1
6
+ Stable tag: 2.0.9
7
 
8
  Mail Bank reconfigures the Mail Function and provides sophisticated SMTP settings to send and log emails from your WordPress site.
9
 
365
 
366
  == Changelog ==
367
 
368
+ = 2.0.9 =
369
+
370
+ * Major Bug Fixed for Multisite Installations
371
+ * Major Bug Fixed for Uninstall Script
372
+ * Minor Bugs Related to DB Version
373
+
374
  = 2.0.8 =
375
 
376
  * Js Code Optimized
wp-mail-bank.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://beta.tech-banker.com
5
  Description: Mail Bank reconfigures the wp_mail() function and make it more enhanced.
6
  Author: Tech Banker
7
  Author URI: http://beta.tech-banker.com
8
- Version: 2.0.8
9
  License: GPLv3
10
  */
11
 
@@ -77,19 +77,19 @@ if(!function_exists("install_script_for_mail_bank"))
77
  global $wpdb;
78
  if(is_multisite())
79
  {
80
- $version = get_site_option("mail-bank-version-number");
81
- if($version < "2.0.2")
82
  {
83
- $blog_ids = $wpdb->get_col("SELECT blog_id FROM $wpdb->blogs");
84
- foreach($blog_ids as $blog_id)
 
85
  {
86
- switch_to_blog($blog_id);
87
  if(file_exists(MAIL_BANK_DIR_PATH."lib/install-script.php"))
88
  {
89
  include MAIL_BANK_DIR_PATH."lib/install-script.php";
90
  }
91
- restore_current_blog();
92
  }
 
93
  }
94
  }
95
  else
@@ -216,14 +216,7 @@ if(!function_exists("mail_bank_action_links"))
216
  }
217
  }
218
 
219
- if(is_multisite())
220
- {
221
- $version = get_site_option("mail-bank-version-number");
222
- }
223
- else
224
- {
225
- $version = get_option("mail-bank-version-number");
226
- }
227
  if($version == "2.0.2")
228
  {
229
  /* admin_enqueue_scripts for backend_js_css_for_mail_bank
@@ -691,9 +684,25 @@ if($version == "2.0.2")
691
  function uninstall_script_for_mail_bank()
692
  {
693
  global $wpdb;
694
- if(file_exists(MAIL_BANK_DIR_PATH."lib/uninstall-script.php"))
 
 
 
 
 
 
 
 
 
 
 
 
 
695
  {
 
 
696
  include MAIL_BANK_DIR_PATH."lib/uninstall-script.php";
 
697
  }
698
  }
699
  }
5
  Description: Mail Bank reconfigures the wp_mail() function and make it more enhanced.
6
  Author: Tech Banker
7
  Author URI: http://beta.tech-banker.com
8
+ Version: 2.0.9
9
  License: GPLv3
10
  */
11
 
77
  global $wpdb;
78
  if(is_multisite())
79
  {
80
+ $blog_ids = $wpdb->get_col("SELECT blog_id FROM $wpdb->blogs");
81
+ foreach($blog_ids as $blog_id)
82
  {
83
+ switch_to_blog($blog_id);
84
+ $version = get_option("mail-bank-version-number");
85
+ if($version < "2.0.2")
86
  {
 
87
  if(file_exists(MAIL_BANK_DIR_PATH."lib/install-script.php"))
88
  {
89
  include MAIL_BANK_DIR_PATH."lib/install-script.php";
90
  }
 
91
  }
92
+ restore_current_blog();
93
  }
94
  }
95
  else
216
  }
217
  }
218
 
219
+ $version = get_option("mail-bank-version-number");
 
 
 
 
 
 
 
220
  if($version == "2.0.2")
221
  {
222
  /* admin_enqueue_scripts for backend_js_css_for_mail_bank
684
  function uninstall_script_for_mail_bank()
685
  {
686
  global $wpdb;
687
+ if(is_multisite())
688
+ {
689
+ $blog_ids = $wpdb->get_col("SELECT blog_id FROM $wpdb->blogs");
690
+ foreach($blog_ids as $blog_id)
691
+ {
692
+ switch_to_blog($blog_id);
693
+ if(file_exists(MAIL_BANK_DIR_PATH."lib/uninstall-script.php"))
694
+ {
695
+ include MAIL_BANK_DIR_PATH."lib/uninstall-script.php";
696
+ }
697
+ restore_current_blog();
698
+ }
699
+ }
700
+ else
701
  {
702
+ if(file_exists(MAIL_BANK_DIR_PATH."lib/uninstall-script.php"))
703
+ {
704
  include MAIL_BANK_DIR_PATH."lib/uninstall-script.php";
705
+ }
706
  }
707
  }
708
  }