Making WordPress.org


Ignore:
Timestamp:
03/02/2017 11:29:27 PM (8 years ago)
Author:
SergeyBiryukov
Message:

Support Theme: Introduce wporg_support_get_compat_views() and wporg_support_is_compat_view() to DRY some conditionals.

File:
1 edited

Legend:

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

    r5021 r5049  
    5151            <?php do_action( 'bbp_theme_after_topic_started_by' ); ?>
    5252
    53             <?php if ( ( bbp_is_single_view() && ! in_array( bbp_get_view_id(), array( 'plugin', 'theme', 'reviews', 'active' ) ) ) || ( bbp_is_single_forum() && bbp_get_topic_forum_id() != bbp_get_forum_id() ) || bbp_is_single_user_topics() ) : ?>
     53            <?php if ( ( bbp_is_single_view() && ! wporg_support_is_compat_view() ) || ( bbp_is_single_forum() && bbp_get_topic_forum_id() != bbp_get_forum_id() ) || bbp_is_single_user_topics() ) : ?>
    5454
    5555                <?php do_action( 'bbp_theme_before_topic_started_in' ); ?>
Note: See TracChangeset for help on using the changeset viewer.