Changeset 709121
- Timestamp:
- 05/07/2013 08:38:02 AM (13 years ago)
- Location:
- reportcomments/trunk
- Files:
-
- 3 edited
-
readme.txt (modified) (2 diffs)
-
reportcomments.js (modified) (1 diff)
-
reportcomments.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
reportcomments/trunk/readme.txt
r699088 r709121 2 2 3 3 Contributors: lefalque 4 Version: 1.2 4 Version: 1.2.1 5 5 Tags: comments, admin, ajax 6 6 Requires at least: 3.0 7 Tested up to: 3.5 7 Tested up to: 3.5.1 8 8 Stable tag: 1.2 9 9 License: GPL2 … … 32 32 == Changelog == 33 33 34 = 1.2.1 = 35 - Changed filter for how the report link was shown, now it appears even when threads are on their lowest level. You may need to style it (.report-comments) depending on your theme. 36 - Removed requirement for PHP 5.3.0. 37 34 38 = 1.2 = 35 39 - Added option to only let logged in users report comments (located at WordPress discussion settings). -
reportcomments/trunk/reportcomments.js
r663128 r709121 1 jQuery(document).ready(function() {2 // jQuery('#post-comments .report-comment').show();3 });4 5 1 function report_comments_flag(element, id, nonce) { 6 2 var data = { -
reportcomments/trunk/reportcomments.php
r699081 r709121 48 48 if (get_option($this->pluginPrefix. '_members_only')) { 49 49 if (is_user_logged_in()) { 50 add_filter('comment_ reply_link', array($this, 'printReportLink'));50 add_filter('comment_text', array($this, 'printReportLink')); 51 51 } 52 52 } else { 53 add_filter('comment_ reply_link', array($this, 'printReportLink'));53 add_filter('comment_text', array($this, 'printReportLink')); 54 54 } 55 55 … … 258 258 * Initialize plugin. 259 259 */ 260 add_action('init', function() { 261 new ReportComments(); 262 }); 260 new ReportComments();
Note: See TracChangeset
for help on using the changeset viewer.