Plugin Directory

Changeset 900922

Timestamp:
04/23/2014 12:27:21 PM (10 years ago)
Author:
eoigal
Message:

akismet_show_user_comments_approved option used to be "false", need to check for this or number of comments previously approved will be shown

File:
1 edited

Legend:

Unmodified
Added
Removed
  • akismet/trunk/class.akismet-admin.php

    r899801 r900922  
    515515            echo '<span class="akismet-status" commentid="'.$comment->comment_ID.'"><a href="comment.php?action=editcomment&amp;c='.$comment->comment_ID.'#akismet-status" title="' . esc_attr__( 'View comment history' , 'akismet') . '">'.esc_html( $desc ).'</a></span>';
    516516
    517         if ( apply_filters( 'akismet_show_user_comments_approved', get_option('akismet_show_user_comments_approved') ) ) {
     517        $show_user_comments = apply_filters( 'akismet_show_user_comments_approved', get_option('akismet_show_user_comments_approved') );
     518        $show_user_comments = $show_user_comments === 'false' ? false : $show_user_comments; //option used to be saved as 'false' / 'true'
     519       
     520        if ( $show_user_comments ) {
    518521            $comment_count = Akismet::get_user_comments_approved( $comment->user_id, $comment->comment_author_email, $comment->comment_author, $comment->comment_author_url );
    519522            $comment_count = intval( $comment_count );
Note: See TracChangeset for help on using the changeset viewer.