WordPress.org

Make WordPress Core

Changeset 8217


Ignore:
Timestamp:
06/30/2008 08:46:39 PM (12 years ago)
Author:
ryan
Message:

comment_rows_actions filter from andy. fixes #7212

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/template.php

    r8177 r8217  
    768768    $actions = array();
    769769
     770    if ( current_user_can('edit_post', $comment->comment_post_ID) ) {
    770771        $actions['approve']   = "<a href='$approve_url' class='dim:the-comment-list:comment-$comment->comment_ID:unapproved:e7e7d3:e7e7d3' title='" . __( 'Approve this comment' ) . "'>" . __( 'Approve' ) . '</a> | ';
    771772        $actions['unapprove'] = "<a href='$unapprove_url' class='dim:the-comment-list:comment-$comment->comment_ID:unapproved:e7e7d3:e7e7d3' title='" . __( 'Unapprove this comment' ) . "'>" . __( 'Unapprove' ) . '</a> | ';
     
    780781        }
    781782
    782     if ( current_user_can('edit_post', $comment->comment_post_ID) ) {
    783783        $actions['spam']      = "<a href='$spam_url' class='delete:the-comment-list:comment-$comment->comment_ID::spam=1' title='" . __( 'Mark this comment as spam' ) . "'>" . __( 'Spam' ) . '</a> | ';
    784784        $actions['delete']    = "<a href='$delete_url' class='delete:the-comment-list:comment-$comment->comment_ID delete'>" . __('Delete') . '</a>';
     785        $actions = apply_filters( 'comment_row_actions', $actions, $comment );
    785786        foreach ( $actions as $action => $link )
    786787            echo "<span class='$action'>$link</span>";
Note: See TracChangeset for help on using the changeset viewer.