Subscribe2 - Version 10.20.1

Version Description

Download this release

Release Info

Developer tanaylakhani
Plugin Icon 128x128 Subscribe2
Version 10.20.1
Comparing to
See all releases

Code changes from version 10.20.0 to 10.20.1

ChangeLog.txt CHANGED
@@ -1,3 +1,7 @@
 
 
 
 
1
  = 10.20.0 =
2
 
3
  * Bug Fix for readygraph and compatibility with other plugins
1
+ = 10.20.1 =
2
+
3
+ * Bug Fix
4
+
5
  = 10.20.0 =
6
 
7
  * Bug Fix for readygraph and compatibility with other plugins
ReadMe.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://plugins.readygraph.com/donate/
4
  Tags: posts, subscription, email, subscribe, notify, notification
5
  Requires at least: 3.3
6
  Tested up to: 4.1
7
- Stable tag: 10.20.0
8
  License: GPL3
9
 
10
  Sends a list of subscribers emails when you publish new posts. Automate user growth and revenue with ReadyGraph integration.
4
  Tags: posts, subscription, email, subscribe, notify, notification
5
  Requires at least: 3.3
6
  Tested up to: 4.1
7
+ Stable tag: 10.20.1
8
  License: GPL3
9
 
10
  Sends a list of subscribers emails when you publish new posts. Automate user growth and revenue with ReadyGraph integration.
extension/readygraph/extension.php CHANGED
@@ -20,10 +20,10 @@ script.onload = function(e) {
20
  settings['applicationId'] = '<?php echo get_option('readygraph_application_id', '') ?>';
21
  settings['overrideFacebookSDK'] = true;
22
  settings['platform'] = 'others';
23
- settings['enableLoginWall'] = <?php echo get_option('readygraph_enable_popup', 'true') ?>;
24
  settings['enableSidebar'] = <?php echo get_option('readygraph_enable_sidebar', 'false') ?>;
25
  settings['inviteFlowDelay'] = <?php echo get_option('readygraph_delay', '5000') ?>;
26
- settings['enableNotification'] = <?php echo get_option('readygraph_enable_notification', 'true') ?>;
27
  settings['inviteAutoSelectAll'] = <?php echo get_option('readygraph_auto_select_all', 'true') ?>;
28
  top.readygraph.setup(settings);
29
  readygraph.ready(function() {
@@ -64,7 +64,6 @@ script.onload = function(e) {
64
  },function(){});
65
  <?php } ?>
66
  }
67
- }
68
  readygraph.framework.authentication.getUserInfo(function(userInfo) {
69
  if (userInfo.get('uid') != null) {
70
  process(userInfo);
20
  settings['applicationId'] = '<?php echo get_option('readygraph_application_id', '') ?>';
21
  settings['overrideFacebookSDK'] = true;
22
  settings['platform'] = 'others';
23
+ settings['enableLoginWall'] = <?php echo get_option('readygraph_enable_popup', 'false') ?>;
24
  settings['enableSidebar'] = <?php echo get_option('readygraph_enable_sidebar', 'false') ?>;
25
  settings['inviteFlowDelay'] = <?php echo get_option('readygraph_delay', '5000') ?>;
26
+ settings['enableNotification'] = <?php echo get_option('readygraph_enable_notification', 'false') ?>;
27
  settings['inviteAutoSelectAll'] = <?php echo get_option('readygraph_auto_select_all', 'true') ?>;
28
  top.readygraph.setup(settings);
29
  readygraph.ready(function() {
64
  },function(){});
65
  <?php } ?>
66
  }
 
67
  readygraph.framework.authentication.getUserInfo(function(userInfo) {
68
  if (userInfo.get('uid') != null) {
69
  process(userInfo);
readygraph-extension.php CHANGED
@@ -10,6 +10,7 @@
10
  function s2_myajax_submit() {
11
  if ($_POST['adsoptimal_id']) update_option('readygraph_adsoptimal_id',$_POST['adsoptimal_id']);
12
  if ($_POST['adsoptimal_secret']) update_option('readygraph_adsoptimal_secret',$_POST['adsoptimal_secret']);
 
13
  $email = $_POST['email'];
14
  if ($email){
15
  global $wpdb;
@@ -135,7 +136,11 @@ function add_s2_readygraph_plugin_warning() {
135
  }
136
 
137
  add_action('admin_notices', 'add_s2_readygraph_plugin_warning');
 
 
138
  add_action('wp_footer', 's2_readygraph_client_script_head', 5);
 
 
139
  add_action('admin_init', 'on_plugin_activated_readygraph_s2_redirect');
140
  add_option('readygraph_connect_notice','true');
141
 
10
  function s2_myajax_submit() {
11
  if ($_POST['adsoptimal_id']) update_option('readygraph_adsoptimal_id',$_POST['adsoptimal_id']);
12
  if ($_POST['adsoptimal_secret']) update_option('readygraph_adsoptimal_secret',$_POST['adsoptimal_secret']);
13
+ if ($_POST['readygraph_monetize'] && $_POST['readygraph_monetize']== "true") update_option('readygraph_enable_monetize',$_POST['readygraph_monetize']);
14
  $email = $_POST['email'];
15
  if ($email){
16
  global $wpdb;
136
  }
137
 
138
  add_action('admin_notices', 'add_s2_readygraph_plugin_warning');
139
+ if(get_option('readygraph_application_id') && strlen(get_option('readygraph_application_id')) > 0){
140
+ if ((get_option('readygraph_access_token') && strlen(get_option('readygraph_access_token')) > 0) || (get_option('readygraph_enable_monetize') && get_option('readygraph_enable_monetize') == "true")){
141
  add_action('wp_footer', 's2_readygraph_client_script_head', 5);
142
+ }
143
+ }
144
  add_action('admin_init', 'on_plugin_activated_readygraph_s2_redirect');
145
  add_option('readygraph_connect_notice','true');
146
 
subscribe2.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Subscribe2
4
  Plugin URI: http://subscribe2.wordpress.com
5
  Description: Notifies an email list when new entries are posted.
6
- Version: 10.20.0
7
  Author: Matthew Robinson, Tanay Lakhani
8
  Author URI: http://subscribe2.wordpress.com
9
  Licence: GPL3
@@ -55,7 +55,7 @@ if ( is_plugin_active_for_network(plugin_basename(__FILE__)) ) {
55
 
56
  // our version number. Don't touch this or any line below
57
  // unless you know exactly what you are doing
58
- define( 'S2VERSION', '10.20.0' );
59
  define( 'S2PATH', trailingslashit(dirname(__FILE__)) );
60
  define( 'S2DIR', trailingslashit(dirname(plugin_basename(__FILE__))) );
61
  define( 'S2URL', plugin_dir_url(dirname(__FILE__)) . S2DIR );
3
  Plugin Name: Subscribe2
4
  Plugin URI: http://subscribe2.wordpress.com
5
  Description: Notifies an email list when new entries are posted.
6
+ Version: 10.20.1
7
  Author: Matthew Robinson, Tanay Lakhani
8
  Author URI: http://subscribe2.wordpress.com
9
  Licence: GPL3
55
 
56
  // our version number. Don't touch this or any line below
57
  // unless you know exactly what you are doing
58
+ define( 'S2VERSION', '10.20.1' );
59
  define( 'S2PATH', trailingslashit(dirname(__FILE__)) );
60
  define( 'S2DIR', trailingslashit(dirname(plugin_basename(__FILE__))) );
61
  define( 'S2URL', plugin_dir_url(dirname(__FILE__)) . S2DIR );