Making WordPress.org


Ignore:
Timestamp:
03/07/2017 04:16:06 AM (7 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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.