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/topics/template-tags.php

    r4563 r4564  
    9494    }
    9595
     96    // Add support for private status
     97    if ( current_user_can( 'read_private_topics' ) ) {
     98        $post_statuses[] = bbp_get_private_status_id();
     99    }
     100
    96101    $default_topic_search  = !empty( $_REQUEST['ts'] ) ? $_REQUEST['ts'] : false;
    97102    $default_show_stickies = (bool) ( bbp_is_single_forum() || bbp_is_topic_archive() ) && ( false === $default_topic_search );
Note: See TracChangeset for help on using the changeset viewer.