Skip to:
Content

bbPress.org

Ticket #1651: view.diff

File view.diff, 594 bytes (added by GautamGupta, 15 years ago)
  • bbp-common-template.php

     
    480480 * @since bbPress (r2789)
    481481 *
    482482 * @uses WP_Query Checks if WP_Query::bbp_is_view is true
     483 * @uses bbp_is_query_name() To check if a single view query is going on
    483484 * @return bool Is it a view page?
    484485 */
    485486function bbp_is_single_view() {
     
    488489        if ( !empty( $wp_query->bbp_is_view ) && ( true == $wp_query->bbp_is_view ) )
    489490                return true;
    490491
     492        if ( bbp_is_query_name( 'bbp_single_view' ) )
     493                return true;
     494
    491495        return false;
    492496}
    493497