Skip to:
Content

bbPress.org


Ignore:
Timestamp:
09/11/2011 07:13:19 AM (14 years ago)
Author:
johnjamesjacoby
Message:

Update remaining 'spam' and 'trash' post_status references to use _get_ functions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/plugin/bbp-admin/bbp-replies.php

    r3505 r3506  
    674674
    675675            // User cannot view replies in trash
    676             if ( ( 'trash' == $reply->post_status ) && !current_user_can( 'view_trash' ) )
     676            if ( ( bbp_get_trash_status_id() == $reply->post_status ) && !current_user_can( 'view_trash' ) )
    677677                unset( $actions['view'] );
    678678
     
    732732
    733733        // Add Empty Spam button
    734         if ( !empty( $_GET['post_status'] ) && ( 'spam' == $_GET['post_status'] ) && current_user_can( 'moderate' ) ) {
     734        if ( !empty( $_GET['post_status'] ) && ( bbp_get_spam_status_id() == $_GET['post_status'] ) && current_user_can( 'moderate' ) ) {
    735735            wp_nonce_field( 'bulk-destroy', '_destroy_nonce' );
    736736            $title = esc_attr__( 'Empty Spam', 'bbpress' );
Note: See TracChangeset for help on using the changeset viewer.