Skip to:
Content

bbPress.org


Ignore:
Timestamp:
05/16/2011 08:02:09 AM (14 years ago)
Author:
johnjamesjacoby
Message:

Add single view shortcode, and add single views to theme compatibility. Fix issue with theme compat where error could occur if output buffer content was somehow empty.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/plugin/bbp-includes/bbp-general-template.php

    r3132 r3167  
    20612061        global $bbp;
    20622062
     2063        // Prevent debug notice
     2064        $new_content = '';
     2065
    20632066        // Remove the filter that was added in bbp_template_include()
    20642067        remove_filter( 'the_content', 'bbp_replace_the_content', 99999 );
     
    21312134
    21322135        } elseif ( bbp_is_view() ) {
    2133 
     2136            $new_content = $bbp->shortcodes->display_view( array( 'id' => get_query_var( 'bbp_view' ) ) );
    21342137
    21352138        /** Topic Tags ********************************************************/
     
    21632166
    21642167        // Juggle the content around and try to prevent unsightly comments
    2165         if ( $new_content != $content ) {
     2168        if ( !empty( $new_content ) && ( $new_content != $content ) ) {
    21662169
    21672170            // Set the content to be the new content
Note: See TracChangeset for help on using the changeset viewer.