Skip to:
Content

bbPress.org


Ignore:
Timestamp:
12/10/2012 02:27:13 AM (9 years ago)
Author:
johnjamesjacoby
Message:

Add support for private post statuses in topics and replies loops. Fixes #2088.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/replies/template-tags.php

    r4563 r4564  
    7676    }
    7777
     78    // Add support for private status
     79    if ( current_user_can( 'read_private_replies' ) ) {
     80        $post_statuses[] = bbp_get_private_status_id();
     81    }
     82
    7883    $default_reply_search = !empty( $_REQUEST['rs'] ) ? $_REQUEST['rs'] : false;
    7984    $default_post_parent  = ( bbp_is_single_topic() ) ? bbp_get_topic_id() : 'any';
Note: See TracChangeset for help on using the changeset viewer.