Skip to:
Content

bbPress.org

Changeset 5849


Ignore:
Timestamp:
07/15/2015 09:52:18 PM (4 years ago)
Author:
johnjamesjacoby
Message:

BuddyPress: Add all topic statuses to bbp_filter_modify_page_title().

This changeset fixes a bug that only allowed published topics to be queried in group forums.

Props netweb. Fixes #2699.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/extend/buddypress/functions.php

    r5829 r5849  
    130130            $topic = get_posts( array(
    131131                'name'        => bp_action_variable( 1 ),
    132                 'post_status' => 'publish',
     132                'post_status' => array_keys( bbp_get_topic_statuses() ),
    133133                'post_type'   => bbp_get_topic_post_type(),
    134134                'numberposts' => 1
     
    538538 * @uses bbp_get_forum_id() To get the forum id
    539539 * @uses bbp_get_forum_group_ids() To get the forum's group ids
    540  * @uses apply_filters() Calls 'bbp_forum_is_group_forum' with the forum id 
     540 * @uses apply_filters() Calls 'bbp_forum_is_group_forum' with the forum id
    541541 * @return bool True if it is a group forum, false if not
    542542 */
Note: See TracChangeset for help on using the changeset viewer.