Changeset 3167 for branches/plugin/bbp-includes/bbp-general-template.php
- Timestamp:
- 05/16/2011 08:02:09 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/plugin/bbp-includes/bbp-general-template.php
r3132 r3167 2061 2061 global $bbp; 2062 2062 2063 // Prevent debug notice 2064 $new_content = ''; 2065 2063 2066 // Remove the filter that was added in bbp_template_include() 2064 2067 remove_filter( 'the_content', 'bbp_replace_the_content', 99999 ); … … 2131 2134 2132 2135 } elseif ( bbp_is_view() ) { 2133 2136 $new_content = $bbp->shortcodes->display_view( array( 'id' => get_query_var( 'bbp_view' ) ) ); 2134 2137 2135 2138 /** Topic Tags ********************************************************/ … … 2163 2166 2164 2167 // Juggle the content around and try to prevent unsightly comments 2165 if ( $new_content != $content) {2168 if ( !empty( $new_content ) && ( $new_content != $content ) ) { 2166 2169 2167 2170 // Set the content to be the new content
Note: See TracChangeset
for help on using the changeset viewer.