CommentLuv - Version 2.93.7

Version Description

= 2.93 =

updated javascript compatibility and wp3.8 compatibility

Download this release

Release Info

Developer commentluv
Plugin Icon 128x128 CommentLuv
Version 2.93.7
Comparing to
See all releases

Code changes from version 2.93.6 to 2.93.7

Files changed (2) hide show
  1. commentluv.php +17 -12
  2. readme.txt +2 -2
commentluv.php CHANGED
@@ -2,7 +2,7 @@
2
  Plugin Name: CommentLuv
3
  Plugin URI: http://comluv.com/
4
  Description: Reward your readers by automatically placing a link to their last blog post at the end of their comment. Encourage a community and discover new posts.
5
- Version: 2.93.6
6
  Author: Andy Bailey
7
  Author URI: http://www.commentluv.com
8
  Copyright (C) <2011> <Andy Bailey>
@@ -28,7 +28,7 @@ if (! class_exists ( 'commentluv' )) {
28
  var $plugin_url;
29
  var $plugin_dir;
30
  var $db_option = 'commentluv_options';
31
- var $version = "2.93.6";
32
  var $slug = 'commentluv-options';
33
  var $localize;
34
  var $is_commentluv_request = false;
@@ -1138,19 +1138,24 @@ if (! class_exists ( 'commentluv' )) {
1138
  global $current_user;
1139
  $email = $current_user->user_email;
1140
  $firstname = $current_user->first_name;
 
 
 
1141
  if(!$firstname){
1142
  $firstname = $current_user->user_nicename;
1143
  }
1144
- $message = "\n Email: ".$email."\n\n Name: ".$firstname."\n\n Meta: settings_page_289"."\n\n";
1145
- $to = 'cl_notify29@aweber.com';
1146
- $headers = 'From: '.$firstname.' <'.$email.'>'."\r\n\\";
1147
- $mail = wp_mail($to,'cl_notify',$message,$headers);
1148
- if($mail === true){
1149
- $options = $this->get_options();
1150
- $options['subscribed'] = true;
1151
- update_option($this->db_option,$options);
1152
- }
1153
- $return = array('success'=>$mail,'email'=>$email);
 
 
1154
  // return response
1155
  $response = json_encode($return);
1156
  // response output
2
  Plugin Name: CommentLuv
3
  Plugin URI: http://comluv.com/
4
  Description: Reward your readers by automatically placing a link to their last blog post at the end of their comment. Encourage a community and discover new posts.
5
+ Version: 2.93.7
6
  Author: Andy Bailey
7
  Author URI: http://www.commentluv.com
8
  Copyright (C) <2011> <Andy Bailey>
28
  var $plugin_url;
29
  var $plugin_dir;
30
  var $db_option = 'commentluv_options';
31
+ var $version = "2.93.7";
32
  var $slug = 'commentluv-options';
33
  var $localize;
34
  var $is_commentluv_request = false;
1138
  global $current_user;
1139
  $email = $current_user->user_email;
1140
  $firstname = $current_user->first_name;
1141
+ $url = 'http://contact.commentluv.com/subscribe';
1142
+ $list = 'pdYIXefvLNL38bE3fDcB3Q';
1143
+ // sendy
1144
  if(!$firstname){
1145
  $firstname = $current_user->user_nicename;
1146
  }
1147
+ $response = wp_remote_post( $url, array(
1148
+ 'method' => 'POST',
1149
+ 'timeout' => 45,
1150
+ 'redirection' => 5,
1151
+ 'httpversion' => '1.0',
1152
+ 'blocking' => true,
1153
+ 'headers' => array(),
1154
+ 'body' => array( 'name' => $firstname, 'email' => $email ,'list'=>$list),
1155
+ 'cookies' => array()
1156
+ )
1157
+ );
1158
+ $return = array('success'=>true,'email'=>$email);
1159
  // return response
1160
  $response = json_encode($return);
1161
  // response output
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: commentluv, @hishaman (css additions)
3
  Donate link:http://comluv.com/about/donate
4
  Tags: commentluv, comments, last blog post, linkluv, comment luv , commentlove, comment love
5
  Requires at least: 3.6
6
- Tested up to: 4.0
7
- Stable tag: 2.93.6
8
 
9
  Reward your readers by automatically placing a link to their last blog post at the end of their comment. Encourage a community and discover new posts.
10
 
3
  Donate link:http://comluv.com/about/donate
4
  Tags: commentluv, comments, last blog post, linkluv, comment luv , commentlove, comment love
5
  Requires at least: 3.6
6
+ Tested up to: 4.0.1
7
+ Stable tag: 2.93.7
8
 
9
  Reward your readers by automatically placing a link to their last blog post at the end of their comment. Encourage a community and discover new posts.
10