WordPress.org

Make WordPress Core

Changeset 20533


Ignore:
Timestamp:
04/19/2012 02:00:44 PM (9 years ago)
Author:
duck_
Message:

Remove "Approve" bulk action when viewing spam comments as it isn't shown in the row actions. Props russellwwest. Fixes #20123.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/class-wp-comments-list-table.php

    r20350 r20533  
    187187        if ( in_array( $comment_status, array( 'all', 'approved' ) ) )
    188188            $actions['unapprove'] = __( 'Unapprove' );
    189         if ( in_array( $comment_status, array( 'all', 'moderated', 'spam' ) ) )
     189        if ( in_array( $comment_status, array( 'all', 'moderated' ) ) )
    190190            $actions['approve'] = __( 'Approve' );
    191191        if ( in_array( $comment_status, array( 'all', 'moderated', 'approved' ) ) )
Note: See TracChangeset for help on using the changeset viewer.