WordPress.org

Plugin Directory

Changeset 501906


Ignore:
Timestamp:
02/07/12 23:06:28 (2 years ago)
Author:
josephscott
Message:

Only use the new method for showing the history link on comments marked as
spam on WP version 3.4 and up

File:
1 edited

Legend:

Unmodified
Added
Removed
  • akismet/trunk/admin.php

    r501888 r501906  
    348348        foreach ( $a as $k => $item ) { 
    349349            $b[ $k ] = $item; 
    350             if ( $k == 'edit' || $k == 'unspam' ) { 
     350            if ( 
     351                $k == 'edit' 
     352                || ( $k == 'unspam' && $GLOBALS['wp_version'] >= 3.4 ) 
     353            ) { 
    351354                $b['history'] = '<a href="comment.php?action=editcomment&amp;c='.$comment->comment_ID.'#akismet-status" title="'. esc_attr__( 'View comment history' ) . '"> '. __('History') . '</a>'; 
    352355            } 
Note: See TracChangeset for help on using the changeset viewer.