Skip to:
Content

bbPress.org

Changeset 4183


Ignore:
Timestamp:
09/04/2012 08:19:29 AM (14 years ago)
Author:
johnjamesjacoby
Message:

Queries:

  • Remove query name settings from BBP_Shortcodes.
  • No longer used.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/plugin/bbp-includes/bbp-core-shortcodes.php

    r4117 r4183  
    163163         * @since bbPress (r3079)
    164164         *
    165          * @param string $query_name
    166          *
    167          * @uses bbp_set_query_name()
    168165         * @uses ob_start()
    169166         */
    170         private function start( $query_name = '' ) {
    171 
    172                 // Set query name
    173                 bbp_set_query_name( $query_name );
     167        private function start() {
    174168
    175169                // Remove 'bbp_replace_the_content' filter to prevent infinite loops
    … …  
    198192                // Flush the output buffer
    199193                ob_end_clean();
    200 
    201                 // Reset the query name
    202                 bbp_reset_query_name();
    203194
    204195                // Add 'bbp_replace_the_content' filter back (@see $this::start())
    … …  
    228219
    229220                // Start output buffer
    230                 $this->start( 'bbp_forum_archive' );
     221                $this->start();
    231222
    232223                bbp_get_template_part( 'content', 'archive-forum' );
    … …  
    262253
    263254                // Start output buffer
    264                 $this->start( 'bbp_single_forum' );
     255                $this->start();
    265256
    266257                // Check forum caps
    … …  
    288279
    289280                // Start output buffer
    290                 $this->start( 'bbp_forum_form' );
     281                $this->start();
    291282
    292283                // Output templates
    … …  
    322313
    323314                // Start output buffer
    324                 $this->start( 'bbp_topic_archive' );
     315                $this->start();
    325316
    326317                // Output template
    … …  
    376367
    377368                // Start output buffer
    378                 $this->start( 'bbp_single_topic' );
     369                $this->start();
    379370
    380371                // Check forum caps
    … …  
    402393
    403394                // Start output buffer
    404                 $this->start( 'bbp_topic_form' );
     395                $this->start();
    405396
    406397                // Output templates
    … …  
    458449
    459450                // Start output buffer
    460                 $this->start( 'bbp_single_reply' );
     451                $this->start();
    461452
    462453                // Check forum caps
    … …  
    484475
    485476                // Start output buffer
    486                 $this->start( 'bbp_reply_form' );
     477                $this->start();
    487478
    488479                // Output templates
    … …  
    509500
    510501                // Start output buffer
    511                 $this->start( 'bbp_topic_tags' );
     502                $this->start();
    512503
    513504                // Output the topic tags
    … …  
    549540
    550541                // Start output buffer
    551                 $this->start( 'bbp_topic_tag' );
     542                $this->start();
    552543
    553544                // Set passed attribute to $ag_id for clarity
    … …  
    578569
    579570                // Start output buffer
    580                 $this->start( 'bbp_topic_tag_edit' );
     571                $this->start();
    581572
    582573                // Output template
    … …  
    611602
    612603                // Start output buffer
    613                 $this->start( 'bbp_single_view' );
     604                $this->start();
    614605
    615606                // Unset globals
    … …  
    641632
    642633                // Start output buffer
    643                 $this->start( 'bbp_login' );
     634                $this->start();
    644635
    645636                // Output templates
    … …  
    666657
    667658                // Start output buffer
    668                 $this->start( 'bbp_register' );
     659                $this->start();
    669660
    670661                // Output templates
    … …  
    691682
    692683                // Start output buffer
    693                 $this->start( 'bbp_lost_pass' );
     684                $this->start();
    694685
    695686                // Output templates
    … …  
    718709
    719710                // Start output buffer
    720                 $this->ob_start();
     711                $this->start();
    721712
    722713                // Output breadcrumb
Note: See TracChangeset for help on using the changeset viewer.