Changeset 4183
- Timestamp:
- 09/04/2012 08:19:29 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/plugin/bbp-includes/bbp-core-shortcodes.php
r4117 r4183 163 163 * @since bbPress (r3079) 164 164 * 165 * @param string $query_name166 *167 * @uses bbp_set_query_name()168 165 * @uses ob_start() 169 166 */ 170 private function start( $query_name = '' ) { 171 172 // Set query name 173 bbp_set_query_name( $query_name ); 167 private function start() { 174 168 175 169 // Remove 'bbp_replace_the_content' filter to prevent infinite loops … … 198 192 // Flush the output buffer 199 193 ob_end_clean(); 200 201 // Reset the query name202 bbp_reset_query_name();203 194 204 195 // Add 'bbp_replace_the_content' filter back (@see $this::start()) … … 228 219 229 220 // Start output buffer 230 $this->start( 'bbp_forum_archive');221 $this->start(); 231 222 232 223 bbp_get_template_part( 'content', 'archive-forum' ); … … 262 253 263 254 // Start output buffer 264 $this->start( 'bbp_single_forum');255 $this->start(); 265 256 266 257 // Check forum caps … … 288 279 289 280 // Start output buffer 290 $this->start( 'bbp_forum_form');281 $this->start(); 291 282 292 283 // Output templates … … 322 313 323 314 // Start output buffer 324 $this->start( 'bbp_topic_archive');315 $this->start(); 325 316 326 317 // Output template … … 376 367 377 368 // Start output buffer 378 $this->start( 'bbp_single_topic');369 $this->start(); 379 370 380 371 // Check forum caps … … 402 393 403 394 // Start output buffer 404 $this->start( 'bbp_topic_form');395 $this->start(); 405 396 406 397 // Output templates … … 458 449 459 450 // Start output buffer 460 $this->start( 'bbp_single_reply');451 $this->start(); 461 452 462 453 // Check forum caps … … 484 475 485 476 // Start output buffer 486 $this->start( 'bbp_reply_form');477 $this->start(); 487 478 488 479 // Output templates … … 509 500 510 501 // Start output buffer 511 $this->start( 'bbp_topic_tags');502 $this->start(); 512 503 513 504 // Output the topic tags … … 549 540 550 541 // Start output buffer 551 $this->start( 'bbp_topic_tag');542 $this->start(); 552 543 553 544 // Set passed attribute to $ag_id for clarity … … 578 569 579 570 // Start output buffer 580 $this->start( 'bbp_topic_tag_edit');571 $this->start(); 581 572 582 573 // Output template … … 611 602 612 603 // Start output buffer 613 $this->start( 'bbp_single_view');604 $this->start(); 614 605 615 606 // Unset globals … … 641 632 642 633 // Start output buffer 643 $this->start( 'bbp_login');634 $this->start(); 644 635 645 636 // Output templates … … 666 657 667 658 // Start output buffer 668 $this->start( 'bbp_register');659 $this->start(); 669 660 670 661 // Output templates … … 691 682 692 683 // Start output buffer 693 $this->start( 'bbp_lost_pass');684 $this->start(); 694 685 695 686 // Output templates … … 718 709 719 710 // Start output buffer 720 $this-> ob_start();711 $this->start(); 721 712 722 713 // Output breadcrumb
Note: See TracChangeset
for help on using the changeset viewer.