CommentLuv - Version 2.93.5

Version Description

  • added : option to allow disable of utf8 encode on feed (thanks Eli http://www.un-jardin-bio.com for testing)
Download this release

Release Info

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

Code changes from version 2.93.4 to 2.93.5

Files changed (2) hide show
  1. commentluv.php +13 -4
  2. readme.txt +10 -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.4
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.4";
32
  var $slug = 'commentluv-options';
33
  var $localize;
34
  var $is_commentluv_request = false;
@@ -1300,6 +1300,7 @@ if (! class_exists ( 'commentluv' )) {
1300
  */
1301
  function send_feed_file(){
1302
  //debugbreak();
 
1303
  $postquery = array('numberposts'=>10,'post_type'=>'post');
1304
  if(is_category()){
1305
  $cat = get_query_var('cat');
@@ -1346,7 +1347,11 @@ if (! class_exists ( 'commentluv' )) {
1346
  $feed .= '</channel></rss>';
1347
  ob_end_clean();
1348
  // force utf characters
1349
- $feed = utf8_encode($feed);
 
 
 
 
1350
  header("Content-Type: application/atom+xml; charset=".get_bloginfo('charset'));
1351
  echo $feed;
1352
  exit;
@@ -1660,9 +1665,13 @@ if (! class_exists ( 'commentluv' )) {
1660
  <input type="checkbox" name="<?php echo $dbo;?>[template_insert]" <?php if(isset($o['template_insert'])) checked($o['template_insert'],'on');?> value="on"/><label for="<?php echo $dbo;?>[template_insert]"> <?php _e('Use manual insert of badge code?',$pd);?></label>
1661
  <br>( <strong>&lt;?php cl_display_badge(); ?&gt;</strong> )
1662
  </td>
1663
- <td colspan="2">
1664
  <input type="checkbox" name="<?php echo $dbo;?>[minifying]" <?php if(isset($o['minifying'])) checked($o['minifying'],'on');?> value="on"/><label for="<?php echo $dbo;?>[minifying]"> <?php _e('Enable minifying compatibility?',$pd);?></label>
1665
  <br><?php _e('For caching plugins (places localized code in footer)',$pd);?>
 
 
 
 
1666
  </td>
1667
  <td>
1668
  <input type="checkbox" name="<?php echo $dbo;?>[disable_detect]" <?php if(isset($o['disable_detect'])) checked($o['disable_detect'],'on');?> value="on"/><label for="<?php echo $dbo;?>[disable_detect]"> <?php _e('Disable Detection?',$pd);?></label>
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
  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;
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()){
1306
  $cat = get_query_var('cat');
1347
  $feed .= '</channel></rss>';
1348
  ob_end_clean();
1349
  // force utf characters
1350
+ if(isset($options['utf8']) && $options['utf8'] == 'on'){
1351
+ // do nothing if set to disable utf8 encoding
1352
+ } else {
1353
+ $feed = utf8_encode($feed);
1354
+ }
1355
  header("Content-Type: application/atom+xml; charset=".get_bloginfo('charset'));
1356
  echo $feed;
1357
  exit;
1665
  <input type="checkbox" name="<?php echo $dbo;?>[template_insert]" <?php if(isset($o['template_insert'])) checked($o['template_insert'],'on');?> value="on"/><label for="<?php echo $dbo;?>[template_insert]"> <?php _e('Use manual insert of badge code?',$pd);?></label>
1666
  <br>( <strong>&lt;?php cl_display_badge(); ?&gt;</strong> )
1667
  </td>
1668
+ <td>
1669
  <input type="checkbox" name="<?php echo $dbo;?>[minifying]" <?php if(isset($o['minifying'])) checked($o['minifying'],'on');?> value="on"/><label for="<?php echo $dbo;?>[minifying]"> <?php _e('Enable minifying compatibility?',$pd);?></label>
1670
  <br><?php _e('For caching plugins (places localized code in footer)',$pd);?>
1671
+ </td>
1672
+ <td>
1673
+ <input type="checkbox" name="<?php echo $dbo;?>[utf8]" <?php if(isset($o['utf8'])) checked($o['utf8'],'on');?> value="on"/><label for="<?php echo $dbo;?>[utf8]"> <?php _e('Disable UTF8 encoding?',$pd);?></label>
1674
+ <br><?php _e('If you are having issues with accents not showing properly',$pd);?>
1675
  </td>
1676
  <td>
1677
  <input type="checkbox" name="<?php echo $dbo;?>[disable_detect]" <?php if(isset($o['disable_detect'])) checked($o['disable_detect'],'on');?> value="on"/><label for="<?php echo $dbo;?>[disable_detect]"> <?php _e('Disable Detection?',$pd);?></label>
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.8
7
- Stable tag: 2.93.4
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
 
@@ -83,6 +83,10 @@ No. The link and associated data is saved to the comment meta table
83
 
84
  Please see the videos in the settings page for explanations of how they work.
85
 
 
 
 
 
86
  == Screenshots ==
87
 
88
  1. settings page
@@ -95,6 +99,10 @@ Please see the videos in the settings page for explanations of how they work.
95
 
96
  == ChangeLog ==
97
 
 
 
 
 
98
  = 2.93.4 =
99
 
100
  * updated : experimental - force to utf8 characters when outputting feed
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
 
83
 
84
  Please see the videos in the settings page for explanations of how they work.
85
 
86
+ = Accents in my language are not showing correctly =
87
+
88
+ Please tick the box marked "disable UTF8 encoding" in the technical settings area of the plugins settings page
89
+
90
  == Screenshots ==
91
 
92
  1. settings page
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)
105
+
106
  = 2.93.4 =
107
 
108
  * updated : experimental - force to utf8 characters when outputting feed