Changeset 1041917
- Timestamp:
- 12/10/2014 01:42:56 PM (11 years ago)
- Location:
- commentluv/trunk
- Files:
-
- 2 edited
-
commentluv.php (modified) (3 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
commentluv/trunk/commentluv.php
r1000978 r1041917 3 3 Plugin URI: http://comluv.com/ 4 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. 65 Version: 2.93.7 6 6 Author: Andy Bailey 7 7 Author URI: http://www.commentluv.com … … 29 29 var $plugin_dir; 30 30 var $db_option = 'commentluv_options'; 31 var $version = "2.93. 6";31 var $version = "2.93.7"; 32 32 var $slug = 'commentluv-options'; 33 33 var $localize; … … 1139 1139 $email = $current_user->user_email; 1140 1140 $firstname = $current_user->first_name; 1141 $url = 'http://contact.commentluv.com/subscribe'; 1142 $list = 'pdYIXefvLNL38bE3fDcB3Q'; 1143 // sendy 1141 1144 if(!$firstname){ 1142 1145 $firstname = $current_user->user_nicename; 1143 1146 } 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); 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); 1154 1159 // return response 1155 1160 $response = json_encode($return); -
commentluv/trunk/readme.txt
r1000978 r1041917 4 4 Tags: commentluv, comments, last blog post, linkluv, comment luv , commentlove, comment love 5 5 Requires at least: 3.6 6 Tested up to: 4.0 7 Stable tag: 2.93. 66 Tested up to: 4.0.1 7 Stable tag: 2.93.7 8 8 9 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.
Note: See TracChangeset
for help on using the changeset viewer.