Version Description
- added : ability to allow Jetpack comments to activate. (thought it best to still allow free choice, maybe someone wants the advantage they get with commentluv when they comment on other commentluv blogs?)
Download this release
Release Info
Developer | commentluv |
Plugin | CommentLuv |
Version | 2.92.1 |
Comparing to | |
See all releases |
Code changes from version 2.92 to 2.92.1
- commentluv.php +13 -6
- readme.txt +5 -1
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.92
|
6 |
Author: Andy Bailey
|
7 |
Author URI: http://www.commentluv.com
|
8 |
Copyright (C) <2011> <Andy Bailey>
|
@@ -28,7 +28,7 @@
|
|
28 |
var $plugin_url;
|
29 |
var $plugin_dir;
|
30 |
var $db_option = 'commentluv_options';
|
31 |
-
var $version = "2.92";
|
32 |
var $slug = 'commentluv-options';
|
33 |
var $localize;
|
34 |
var $is_commentluv_request = false;
|
@@ -39,8 +39,11 @@
|
|
39 |
*/
|
40 |
function __construct() {
|
41 |
global $wp_version, $pagenow, $wp_actions;
|
|
|
42 |
// try to add jetpack_module_loaded_comments action so it doesn't load
|
43 |
-
$
|
|
|
|
|
44 |
// pages where this plugin needs translation
|
45 |
$local_pages = array ('plugins.php', 'options-general.php' );
|
46 |
// check if translation needed on current page
|
@@ -84,7 +87,7 @@
|
|
84 |
add_filter ( 'plugin_action_links', array (&$this, 'plugin_action_link' ), - 10, 2 ); // add a settings page link to the plugin description. use 2 for allowed vars
|
85 |
// add_filter ( 'found_posts', array(&$this,'send_feed'),-1,2); // sends post titles and urls only - deprecated in 2.90.9.9
|
86 |
add_filter ( 'kindergarten_html', array(&$this,'kindergarten_html')); // for cleaning html
|
87 |
-
|
88 |
//$this->check_version();
|
89 |
if(!isset($options['enable']) || ( isset($options['enable']) && $options['enable'] != 'no')){
|
90 |
$this->setup_hooks();
|
@@ -1657,7 +1660,7 @@
|
|
1657 |
<td style="background-color: #dfdfdf; text-align: center; font-weight: bolder;" colspan="5"><?php _e('Extras',$pd);?></td>
|
1658 |
</tr>
|
1659 |
<tr>
|
1660 |
-
<td>
|
1661 |
<select name="<?php echo $dbo;?>[hide_link_no_url]">
|
1662 |
<option value="nothing" <?php selected($o['hide_link_no_url'],'nothing',true);?>><?php _e('Nothing',$this->plugin_domain);?></option>
|
1663 |
<option value="on" <?php selected($o['hide_link_no_url'],'on',true);?>><?php _e('Hide Link',$this->plugin_domain);?></option>
|
@@ -1668,7 +1671,7 @@
|
|
1668 |
<br /><strong>(<?php _e('Prevents spammer abuse',$this->plugin_domain);?>)</strong>
|
1669 |
|
1670 |
</td>
|
1671 |
-
|
1672 |
<td>
|
1673 |
<select name="<?php echo $dbo;?>[hide_link_no_url_match]">
|
1674 |
<option value="nothing" <?php selected($o['hide_link_no_url_match'],'nothing',true);?>><?php _e('Nothing',$this->plugin_domain);?></option>
|
@@ -1680,6 +1683,10 @@
|
|
1680 |
<br /><strong>(<?php _e('Prevents users from adding fake author URLs to get around Akismet',$this->plugin_domain);?>)</strong>
|
1681 |
|
1682 |
</td>
|
|
|
|
|
|
|
|
|
1683 |
</tr>
|
1684 |
<tr>
|
1685 |
<td style="background-color: #dfdfdf; text-align: center; font-weight: bolder;" colspan="5"><?php _e('Diagnostics Info',$pd);?></td>
|
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.92.1
|
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.92.1";
|
32 |
var $slug = 'commentluv-options';
|
33 |
var $localize;
|
34 |
var $is_commentluv_request = false;
|
39 |
*/
|
40 |
function __construct() {
|
41 |
global $wp_version, $pagenow, $wp_actions;
|
42 |
+
$options = $this->get_options();
|
43 |
// try to add jetpack_module_loaded_comments action so it doesn't load
|
44 |
+
if(!isset($options['allow_jpc'])){
|
45 |
+
$wp_actions['jetpack_module_loaded_comments'] = 1;
|
46 |
+
}
|
47 |
// pages where this plugin needs translation
|
48 |
$local_pages = array ('plugins.php', 'options-general.php' );
|
49 |
// check if translation needed on current page
|
87 |
add_filter ( 'plugin_action_links', array (&$this, 'plugin_action_link' ), - 10, 2 ); // add a settings page link to the plugin description. use 2 for allowed vars
|
88 |
// add_filter ( 'found_posts', array(&$this,'send_feed'),-1,2); // sends post titles and urls only - deprecated in 2.90.9.9
|
89 |
add_filter ( 'kindergarten_html', array(&$this,'kindergarten_html')); // for cleaning html
|
90 |
+
|
91 |
//$this->check_version();
|
92 |
if(!isset($options['enable']) || ( isset($options['enable']) && $options['enable'] != 'no')){
|
93 |
$this->setup_hooks();
|
1660 |
<td style="background-color: #dfdfdf; text-align: center; font-weight: bolder;" colspan="5"><?php _e('Extras',$pd);?></td>
|
1661 |
</tr>
|
1662 |
<tr>
|
1663 |
+
<td colspan="2">
|
1664 |
<select name="<?php echo $dbo;?>[hide_link_no_url]">
|
1665 |
<option value="nothing" <?php selected($o['hide_link_no_url'],'nothing',true);?>><?php _e('Nothing',$this->plugin_domain);?></option>
|
1666 |
<option value="on" <?php selected($o['hide_link_no_url'],'on',true);?>><?php _e('Hide Link',$this->plugin_domain);?></option>
|
1671 |
<br /><strong>(<?php _e('Prevents spammer abuse',$this->plugin_domain);?>)</strong>
|
1672 |
|
1673 |
</td>
|
1674 |
+
|
1675 |
<td>
|
1676 |
<select name="<?php echo $dbo;?>[hide_link_no_url_match]">
|
1677 |
<option value="nothing" <?php selected($o['hide_link_no_url_match'],'nothing',true);?>><?php _e('Nothing',$this->plugin_domain);?></option>
|
1683 |
<br /><strong>(<?php _e('Prevents users from adding fake author URLs to get around Akismet',$this->plugin_domain);?>)</strong>
|
1684 |
|
1685 |
</td>
|
1686 |
+
|
1687 |
+
<td>
|
1688 |
+
<input type="checkbox" name="<?php echo $dbo;?>[allow_jpc]" <?php if(isset($o['allow_jpc'])) checked($o['allow_jpc'],'on');?> value="on"/><label for="<?php echo $dbo;?>[allow_jpc]"> <?php _e('Allow Jetpack comments module to activate?',$pd);?></label>
|
1689 |
+
</td>
|
1690 |
</tr>
|
1691 |
<tr>
|
1692 |
<td style="background-color: #dfdfdf; text-align: center; font-weight: bolder;" colspan="5"><?php _e('Diagnostics Info',$pd);?></td>
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ 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.0
|
6 |
Tested up to: 3.4
|
7 |
-
Stable tag: 2.92
|
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 |
|
@@ -85,6 +85,10 @@ Please see the videos in the settings page for explanations of how they work.
|
|
85 |
|
86 |
== ChangeLog ==
|
87 |
|
|
|
|
|
|
|
|
|
88 |
= 2.92 =
|
89 |
|
90 |
* prevent jetpack comments module from being activated so comment is not affected by jetpack plugin upgrades.
|
4 |
Tags: commentluv, comments, last blog post, linkluv, comment luv , commentlove, comment love
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 3.4
|
7 |
+
Stable tag: 2.92.1
|
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 |
|
85 |
|
86 |
== ChangeLog ==
|
87 |
|
88 |
+
= 2.92.1 =
|
89 |
+
|
90 |
+
* added : ability to allow Jetpack comments to activate. (thought it best to still allow free choice, maybe someone wants the advantage they get with commentluv when they comment on other commentluv blogs?)
|
91 |
+
|
92 |
= 2.92 =
|
93 |
|
94 |
* prevent jetpack comments module from being activated so comment is not affected by jetpack plugin upgrades.
|