Plugin Directory

Changeset 709121


Ignore:
Timestamp:
05/07/2013 08:38:02 AM (13 years ago)
Author:
lefalque
Message:

Version 1.2.1, some bugfixes.

Location:
reportcomments/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • reportcomments/trunk/readme.txt

    r699088 r709121  
    22
    33Contributors: lefalque
    4 Version: 1.2
     4Version: 1.2.1
    55Tags: comments, admin, ajax
    66Requires at least: 3.0
    7 Tested up to: 3.5
     7Tested up to: 3.5.1
    88Stable tag: 1.2
    99License: GPL2
     
    3232== Changelog ==
    3333
     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
    3438= 1.2 =
    3539- 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 
    51function report_comments_flag(element, id, nonce) {
    62    var data =  {
  • reportcomments/trunk/reportcomments.php

    r699081 r709121  
    4848        if (get_option($this->pluginPrefix. '_members_only')) {
    4949            if (is_user_logged_in()) {
    50                 add_filter('comment_reply_link', array($this, 'printReportLink'));
     50                add_filter('comment_text', array($this, 'printReportLink'));
    5151            }
    5252        } else {
    53             add_filter('comment_reply_link', array($this, 'printReportLink'));
     53            add_filter('comment_text', array($this, 'printReportLink'));
    5454        }
    5555
     
    258258 * Initialize plugin.
    259259 */
    260 add_action('init', function() {
    261     new ReportComments();
    262 });
     260new ReportComments();
Note: See TracChangeset for help on using the changeset viewer.