CommentLuv - Version 2.93.6

Version Description

*fixed : feed display in settings page allows for non array return *fixed : undefined index in ajax processer broke ajax if settings set to show all errors (rare)

Download this release

Release Info

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

Code changes from version 2.93.5 to 2.93.6

Files changed (2) hide show
  1. commentluv.php +20 -18
  2. readme.txt +7 -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.5
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.5";
32
  var $slug = 'commentluv-options';
33
  var $localize;
34
  var $is_commentluv_request = false;
@@ -637,7 +637,7 @@ if (! class_exists ( 'commentluv' )) {
637
  }
638
  // get click count on local site
639
  $data = get_comment_meta($cid,'cl_data',true);
640
- $clickcount = $data['clicks'] ? $data['clicks'] : 0;
641
  //DebugBreak();
642
  // prem member, try remote fetch of info if not registered on this blog
643
  if($cl_prem == 'p' && $isreg == false){
@@ -1299,7 +1299,7 @@ if (! class_exists ( 'commentluv' )) {
1299
  *
1300
  */
1301
  function send_feed_file(){
1302
- //debugbreak();
1303
  $options = $this->get_options();
1304
  $postquery = array('numberposts'=>10,'post_type'=>'post');
1305
  if(is_category()){
@@ -1767,24 +1767,26 @@ if (! class_exists ( 'commentluv' )) {
1767
  </table>
1768
  <p></p>
1769
  <table class="widefat">
1770
- <tr>
1771
- <td>
1772
- <?php
1773
- //debugbreak();
1774
- include_once(ABSPATH.WPINC.'/feed.php');
1775
- $rss = fetch_feed('http://comluv.com/category/ads/feed/');
1776
- if(!is_wp_error($rss)) {
1777
- $maxitems = $rss->get_item_quantity(2);
1778
- $rssitems = $rss->get_items(0,$maxitems);
1779
- }
 
1780
  foreach($rssitems as $item){
1781
  echo '<div><a href="'.esc_url( $item->get_permalink() ).'">'.esc_html($item->get_title()).'</a>';
1782
  echo '<p>'.$item->get_content().'</p></div>';
1783
  }
1784
- ?>
1785
- </td>
1786
- </tr>
1787
- </table>
 
1788
 
1789
  </div>
1790
  <div class="submit"><input class="button-primary" id="clsubmit" type="submit" name="Submit" value="<?php _e('Save Settings',$this->plugin_domain);?>" /></div>
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
  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;
637
  }
638
  // get click count on local site
639
  $data = get_comment_meta($cid,'cl_data',true);
640
+ $clickcount = isset($data['clicks']) ? $data['clicks'] : 0;
641
  //DebugBreak();
642
  // prem member, try remote fetch of info if not registered on this blog
643
  if($cl_prem == 'p' && $isreg == false){
1299
  *
1300
  */
1301
  function send_feed_file(){
1302
+ // /debugbreak();
1303
  $options = $this->get_options();
1304
  $postquery = array('numberposts'=>10,'post_type'=>'post');
1305
  if(is_category()){
1767
  </table>
1768
  <p></p>
1769
  <table class="widefat">
1770
+ <tr>
1771
+ <td>
1772
+ <?php
1773
+ //debugbreak();
1774
+ include_once(ABSPATH.WPINC.'/feed.php');
1775
+ $rss = fetch_feed('http://comluv.com/category/ads/feed/');
1776
+ if(!is_wp_error($rss)) {
1777
+ $maxitems = $rss->get_item_quantity(2);
1778
+ $rssitems = $rss->get_items(0,$maxitems);
1779
+ }
1780
+ if(is_array($rssitems)){
1781
  foreach($rssitems as $item){
1782
  echo '<div><a href="'.esc_url( $item->get_permalink() ).'">'.esc_html($item->get_title()).'</a>';
1783
  echo '<p>'.$item->get_content().'</p></div>';
1784
  }
1785
+ }
1786
+ ?>
1787
+ </td>
1788
+ </tr>
1789
+ </table>
1790
 
1791
  </div>
1792
  <div class="submit"><input class="button-primary" id="clsubmit" type="submit" name="Submit" value="<?php _e('Save Settings',$this->plugin_domain);?>" /></div>
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: 3.9
7
- Stable tag: 2.93.5
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
 
@@ -99,6 +99,11 @@ Please tick the box marked "disable UTF8 encoding" in the technical settings are
99
 
100
  == ChangeLog ==
101
 
 
 
 
 
 
102
  = 2.93.5 =
103
 
104
  * added : option to allow disable of utf8 encode on feed (thanks Eli http://www.un-jardin-bio.com for testing)
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
 
99
 
100
  == ChangeLog ==
101
 
102
+ = 2.93.6 =
103
+
104
+ *fixed : feed display in settings page allows for non array return
105
+ *fixed : undefined index in ajax processer broke ajax if settings set to show all errors (rare)
106
+
107
  = 2.93.5 =
108
 
109
  * added : option to allow disable of utf8 encode on feed (thanks Eli http://www.un-jardin-bio.com for testing)