Making WordPress.org

Changeset 5103


Ignore:
Timestamp:
03/07/2017 04:16:06 AM (8 years ago)
Author:
SergeyBiryukov
Message:

Support Theme: Remove bb_base_before_topics_loop() and bb_base_after_topics_loop() introduced in [3730].

Move the modifications to content-archive-topic.php template instead.

See #2463.

Location:
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/bbpress/content-archive-topic.php

    r4248 r5103  
    99<?php endif; ?>
    1010
     11<?php bbp_breadcrumb(); ?>
     12
     13<?php if ( bbp_is_topic_tag() ) : ?>
     14
     15    <header id="topic-tag" class="page-header bbp-topic-tag">
     16        <h1 class="page-title"><?php printf( esc_html__( 'Topic Tag: %s', 'bbpress' ), '<span>' . bbp_get_topic_tag_name() . '</span>' ); ?></h1>
     17        <?php bbp_topic_tag_description(); ?>
     18    </header>
     19
     20<?php endif; ?>
     21
    1122<div id="bbpress-forums">
    12 
    13     <?php if ( bbp_is_topic_tag() ) bbp_topic_tag_description(); ?>
    1423
    1524    <?php do_action( 'bbp_template_before_topics_index' ); ?>
    1625
    1726    <?php if ( bbp_has_topics() ) : ?>
     27
     28        <?php bbp_get_template_part( 'pagination', 'topics'    ); ?>
    1829
    1930        <?php bbp_get_template_part( 'loop',       'topics'    ); ?>
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/functions.php

    r5090 r5103  
    676676}
    677677
    678 function bb_base_before_topics_loop() {
    679     do_action( 'bbp_template_notices' );
    680 
    681     if ( ! is_tax( 'topic-tag' ) ) {
    682         return;
    683     }
    684 
    685     bbp_breadcrumb();
    686     ?>
    687     <header id="topic-tag" class="page-header bbp-topic-tag">
    688         <h1 class="page-title"><?php printf( esc_html__( 'Topic Tag: %s', 'bbpress' ), '<span>' . bbp_get_topic_tag_name() . '</span>' ); ?></h1>
    689     </header>
    690     <?php bbp_get_template_part( 'pagination', 'topics' ); ?>
    691         <div class="entry-content">
    692     <?php
    693 }
    694 add_action( 'bbp_template_before_topics_loop', 'bb_base_before_topics_loop' );
    695 
    696 function bb_base_after_topics_loop() {
    697     if ( ! is_tax( 'topic-tag' ) ) {
    698         return;
    699     }
    700     ?>
    701         </div>
    702     <?php
    703 }
    704 add_action( 'bbp_template_after_topics_loop', 'bb_base_after_topics_loop' );
    705 
    706678function bb_is_intl_forum() {
    707679    return get_locale() != 'en_US';
Note: See TracChangeset for help on using the changeset viewer.