MailChimp Forms by MailMunch - Version 2.1.3

Version Description

Download this release

Release Info

Developer mailmunch
Plugin Icon 128x128 MailChimp Forms by MailMunch
Version 2.1.3
Comparing to
See all releases

Code changes from version 2.1.2 to 2.1.3

admin/class-mailchimp-mailmunch-admin.php CHANGED
@@ -148,16 +148,15 @@ class Mailchimp_Mailmunch_Admin {
148
  }
149
 
150
  /**
151
- * Activation notice for admin area
152
  *
153
- * @since 2.0.8
154
  */
155
- function activation_notice() {
156
- $current_screen = get_current_screen();
157
- $siteId = get_option(MAILCHIMP_MAILMUNCH_PREFIX. '_'. 'site_id');
158
-
159
- if (empty($siteId) && strpos($current_screen->id, MAILCHIMP_MAILMUNCH_SLUG) == false) {
160
- echo '<div class="updated"><p>'.$this->plugin_name.' is activated. <a href="admin.php?page='.MAILCHIMP_MAILMUNCH_SLUG.'">Click here</a> to create your first form.</p></div>';
161
  }
162
  }
163
 
148
  }
149
 
150
  /**
151
+ * Activation redirect for admin area
152
  *
153
+ * @since 2.1.3
154
  */
155
+ function activation_redirect() {
156
+ if (get_option(MAILCHIMP_MAILMUNCH_PREFIX. '_activation_redirect', 'true') == 'true') {
157
+ update_option(MAILCHIMP_MAILMUNCH_PREFIX. '_activation_redirect', 'false');
158
+ wp_redirect(esc_url(admin_url('admin.php?page='. MAILCHIMP_MAILMUNCH_SLUG)));
159
+ exit();
 
160
  }
161
  }
162
 
includes/class-mailchimp-mailmunch-activator.php CHANGED
@@ -30,7 +30,7 @@ class Mailchimp_Mailmunch_Activator {
30
  * @since 2.0.0
31
  */
32
  public static function activate() {
33
-
34
  }
35
 
36
  }
30
  * @since 2.0.0
31
  */
32
  public static function activate() {
33
+ update_option('mc_mm_activation_redirect', 'true');
34
  }
35
 
36
  }
includes/class-mailchimp-mailmunch-deactivator.php CHANGED
@@ -30,7 +30,7 @@ class Mailchimp_Mailmunch_Deactivator {
30
  * @since 2.0.0
31
  */
32
  public static function deactivate() {
33
-
34
  }
35
 
36
  }
30
  * @since 2.0.0
31
  */
32
  public static function deactivate() {
33
+ update_option('mc_mm_activation_redirect', 'true');
34
  }
35
 
36
  }
includes/class-mailchimp-mailmunch.php CHANGED
@@ -18,7 +18,7 @@ define( 'MAILCHIMP_MAILMUNCH_URL', "http://wordpress.mailmunch.co" );
18
  define( 'MAILCHIMP_MAILMUNCH_HOME_URL', "http://app.mailmunch.co" );
19
  define( 'MAILCHIMP_MAILMUNCH_SLUG', "mailchimp-mailmunch" );
20
  define( 'MAILCHIMP_MAILMUNCH_PREFIX', 'mc_mm' );
21
- define( 'MAILCHIMP_MAILMUNCH_VERSION', '2.1.2' );
22
 
23
  /**
24
  * The core plugin class.
@@ -194,7 +194,7 @@ class Mailchimp_Mailmunch {
194
  $this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin, 'enqueue_styles' );
195
  $this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin, 'enqueue_scripts' );
196
  $this->loader->add_action( 'admin_menu', $plugin_admin, 'menu' );
197
- $this->loader->add_action( 'admin_notices', $plugin_admin, 'activation_notice' );
198
 
199
  // Ajax calls
200
  $this->loader->add_action( 'wp_ajax_sign_up', $plugin_admin, 'sign_up' );
18
  define( 'MAILCHIMP_MAILMUNCH_HOME_URL', "http://app.mailmunch.co" );
19
  define( 'MAILCHIMP_MAILMUNCH_SLUG', "mailchimp-mailmunch" );
20
  define( 'MAILCHIMP_MAILMUNCH_PREFIX', 'mc_mm' );
21
+ define( 'MAILCHIMP_MAILMUNCH_VERSION', '2.1.3' );
22
 
23
  /**
24
  * The core plugin class.
194
  $this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin, 'enqueue_styles' );
195
  $this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin, 'enqueue_scripts' );
196
  $this->loader->add_action( 'admin_menu', $plugin_admin, 'menu' );
197
+ $this->loader->add_action( 'admin_init', $plugin_admin, 'activation_redirect' );
198
 
199
  // Ajax calls
200
  $this->loader->add_action( 'wp_ajax_sign_up', $plugin_admin, 'sign_up' );
mailchimp-mailmunch.php CHANGED
@@ -16,7 +16,7 @@
16
  * Plugin Name: MailChimp Forms by MailMunch
17
  * Plugin URI: http://connect.mailchimp.com/integrations/mailmunch-email-list-builder
18
  * Description: The MailChimp plugin allows you to quickly and easily add signup forms for your MailChimp lists. Popup, Embedded, Top Bar and a variety of different options available.
19
- * Version: 2.1.2
20
  * Author: MailMunch
21
  * Author URI: http://www.mailmunch.co
22
  * License: GPL-2.0+
16
  * Plugin Name: MailChimp Forms by MailMunch
17
  * Plugin URI: http://connect.mailchimp.com/integrations/mailmunch-email-list-builder
18
  * Description: The MailChimp plugin allows you to quickly and easily add signup forms for your MailChimp lists. Popup, Embedded, Top Bar and a variety of different options available.
19
+ * Version: 2.1.3
20
  * Author: MailMunch
21
  * Author URI: http://www.mailmunch.co
22
  * License: GPL-2.0+
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: mailchimp,mailchimp form,mailchimp newsletter,mailchimp plugin,newsletter,
4
 
5
  Requires at least: 3.0.1
6
  Tested up to: 4.3.1
7
- Stable tag: 2.1.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
4
 
5
  Requires at least: 3.0.1
6
  Tested up to: 4.3.1
7
+ Stable tag: 2.1.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
uninstall.php CHANGED
@@ -34,4 +34,5 @@ delete_option('mc_mm_user_token');
34
  delete_option('mc_mm_site_id');
35
  delete_option('mc_mm_mailchimp_access_token');
36
  delete_option('mc_mm_mailchimp_list_id');
37
- delete_option('mc_mm_skip_onboarding');
 
34
  delete_option('mc_mm_site_id');
35
  delete_option('mc_mm_mailchimp_access_token');
36
  delete_option('mc_mm_mailchimp_list_id');
37
+ delete_option('mc_mm_skip_onboarding');
38
+ delete_option('mc_mm_activation_redirect');