Free Tools to Automate Your Site Growth - Version 1.28

Version Description

Download this release

Release Info

Developer marnietave
Plugin Icon 128x128 Free Tools to Automate Your Site Growth
Version 1.28
Comparing to
See all releases

Code changes from version 1.27 to 1.28

Files changed (3) hide show
  1. Readme.txt +10 -4
  2. classes/class_sumome.php +3 -4
  3. sumome.php +1 -1
Readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: SumoMe
3
  Tags: analytics, campaign monitor, click to tweet, contact form, content analytics, convertkit, drip, email form, ExactTarget, exit-intent, Facebook, facebook share, FeedBlitz, floating social buttons, growth, heat map, heatmaps, Hubspot, image sharing, inbound marketing, Inbox First, infusionsoft, landing page, lightbox, links, mailchimp, mailerlite, mailing list, mailjet, MyEmma, MyNewsletterBuilder, newsletter, Ontraport, pardot, popup, sailthru, scroll box, share, share buttons, share image, sharebar, sharing, site traffic, sms, social, social bookmarking, social media buttons, social plugin, social sharing, subscribers, subscription, traffic growth, tweet button, twitter, twitter share, vero, vertical response, welcome mat, WhatCounts, widget, zapier
4
  Requires at least: 3.0.1
5
- Tested up to: 4.8
6
- Stable tag: 1.27
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -257,7 +257,10 @@ Why you should encourage Twitter sharing
257
  * Sumo transition. Fixed broken link. Design changes.
258
 
259
  = 1.27 =
260
- * Updated tested up to version to the newest Wordpress version.
 
 
 
261
 
262
  == Upgrade Notice ==
263
 
@@ -339,4 +342,7 @@ Why you should encourage Twitter sharing
339
  * Sumo transition. Fixed broken link. Design changes.
340
 
341
  = 1.27 =
342
- * Updated tested up to version to the newest Wordpress version.
 
 
 
2
  Contributors: SumoMe
3
  Tags: analytics, campaign monitor, click to tweet, contact form, content analytics, convertkit, drip, email form, ExactTarget, exit-intent, Facebook, facebook share, FeedBlitz, floating social buttons, growth, heat map, heatmaps, Hubspot, image sharing, inbound marketing, Inbox First, infusionsoft, landing page, lightbox, links, mailchimp, mailerlite, mailing list, mailjet, MyEmma, MyNewsletterBuilder, newsletter, Ontraport, pardot, popup, sailthru, scroll box, share, share buttons, share image, sharebar, sharing, site traffic, sms, social, social bookmarking, social media buttons, social plugin, social sharing, subscribers, subscription, traffic growth, tweet button, twitter, twitter share, vero, vertical response, welcome mat, WhatCounts, widget, zapier
4
  Requires at least: 3.0.1
5
+ Tested up to: 4.9.3
6
+ Stable tag: 1.28
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
257
  * Sumo transition. Fixed broken link. Design changes.
258
 
259
  = 1.27 =
260
+ * Tested up to the newest Wordpress version.
261
+
262
+ = 1.28 =
263
+ * Updated Sumo script tag. Tested up to the newest Wordpress version.
264
 
265
  == Upgrade Notice ==
266
 
342
  * Sumo transition. Fixed broken link. Design changes.
343
 
344
  = 1.27 =
345
+ * Tested up to the newest Wordpress version.
346
+
347
+ = 1.28 =
348
+ * Updated Sumo script tag. Tested up to the newest Wordpress version.
classes/class_sumome.php CHANGED
@@ -135,6 +135,7 @@ class WP_Plugin_SumoMe {
135
 
136
  $sumomeScriptTag[]='<script src="//load.sumome.com/" data-sumo-site-id="' . esc_attr($manuallyInsertedScriptTagSiteID) . '" async="async"></script>';
137
  $sumomeScriptTag[]='<script src="//load.sumo.com/" data-sumo-site-id="' . esc_attr($manuallyInsertedScriptTagSiteID) . '" async="async"></script>';
 
138
  $modified_header = str_replace($sumomeScriptTag,"",$header_contents);
139
 
140
  //make backup of header.php just in case
@@ -153,8 +154,7 @@ class WP_Plugin_SumoMe {
153
  $site_id = get_option('sumome_site_id');
154
 
155
  if ($site_id) {
156
-
157
- echo('<script data-cfasync="false" src="//load.sumome.com/" data-sumo-platform="'.$this->dataSumoPlatform.'" data-sumo-site-id="' . esc_attr($site_id) . '" async></script>');
158
  }
159
  }
160
 
@@ -168,8 +168,7 @@ class WP_Plugin_SumoMe {
168
 
169
  if ($site_id) {
170
  include(SUMOME__PLUGIN_DIR.'/js/preload.php');
171
- echo('<script data-cfasync="false" src="//load.sumome.com/" data-sumo-platform="'.$this->dataSumoPlatform.'" data-sumo-mode="admin" data-sumo-site-id="' . esc_attr($site_id) . '" async></script>');
172
-
173
  }
174
  }
175
 
135
 
136
  $sumomeScriptTag[]='<script src="//load.sumome.com/" data-sumo-site-id="' . esc_attr($manuallyInsertedScriptTagSiteID) . '" async="async"></script>';
137
  $sumomeScriptTag[]='<script src="//load.sumo.com/" data-sumo-site-id="' . esc_attr($manuallyInsertedScriptTagSiteID) . '" async="async"></script>';
138
+ $sumomeScriptTag[]="<script async>(function(s,u,m,o,j,v){j=u.createElement(m);v=u.getElementsByTagName(m)[0];j.async=1;j.src=o;j.dataset.sumoSiteId='".esc_attr($manuallyInsertedScriptTagSiteID)."';v.parentNode.insertBefore(j,v)})(window,document,'script','//load.sumo.com/');</script>";
139
  $modified_header = str_replace($sumomeScriptTag,"",$header_contents);
140
 
141
  //make backup of header.php just in case
154
  $site_id = get_option('sumome_site_id');
155
 
156
  if ($site_id) {
157
+ echo("<script async>(function(s,u,m,o,j,v){j=u.createElement(m);v=u.getElementsByTagName(m)[0];j.async=1;j.src=o;j.dataset.sumoSiteId='".esc_attr($site_id)."';j.dataset.sumoPlatform='".$this->dataSumoPlatform."';v.parentNode.insertBefore(j,v)})(window,document,'script','//load.sumo.com/');</script>");
 
158
  }
159
  }
160
 
168
 
169
  if ($site_id) {
170
  include(SUMOME__PLUGIN_DIR.'/js/preload.php');
171
+ echo("<script async>(function(s,u,m,o,j,v){j=u.createElement(m);v=u.getElementsByTagName(m)[0];j.async=1;j.src=o;j.dataset.sumoSiteId='".esc_attr($site_id)."';j.dataset.sumoPlatform='".$this->dataSumoPlatform."';j.dataset.sumoMode='admin';v.parentNode.insertBefore(j,v)})(window,document,'script','//load.sumo.com/');</script>");
 
172
  }
173
  }
174
 
sumome.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: SumoMe
4
  Plugin URI: https://sumo.com
5
  Description: Free Tools to automate your site growth from Sumo.com
6
- Version: 1.27
7
  Author: SumoMe
8
  Author URI: https://www.Sumo.com
9
  */
3
  Plugin Name: SumoMe
4
  Plugin URI: https://sumo.com
5
  Description: Free Tools to automate your site growth from Sumo.com
6
+ Version: 1.28
7
  Author: SumoMe
8
  Author URI: https://www.Sumo.com
9
  */