Changeset 5043 for trunk/includes/common/shortcodes.php
- Timestamp:
- 07/18/2013 10:27:16 AM (13 years ago)
- File:
-
- 1 edited
-
trunk/includes/common/shortcodes.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/common/shortcodes.php
r5020 r5043 156 156 bbp_set_query_name( $query_name ); 157 157 158 // Remove 'bbp_replace_the_content' filter to prevent infinite loops159 remove_filter( 'the_content', 'bbp_replace_the_content' );160 161 158 // Start output buffer 162 159 ob_start(); … … 173 170 private function end() { 174 171 175 // Put output into usable variable 176 $output = ob_get_contents(); 177 178 // Unset globals 179 $this->unset_globals(); 180 181 // Flush the output buffer 182 ob_end_clean(); 172 // Unset globals 173 $this->unset_globals(); 183 174 184 175 // Reset the query name 185 176 bbp_reset_query_name(); 186 177 187 // Add 'bbp_replace_the_content' filter back (@see $this::start()) 188 add_filter( 'the_content', 'bbp_replace_the_content' ); 189 190 return $output; 178 // Return and flush the output buffer 179 return ob_get_clean(); 191 180 } 192 181
Note: See TracChangeset
for help on using the changeset viewer.