Making WordPress.org

Changeset 4905


Ignore:
Timestamp:
02/14/2017 08:32:49 PM (8 years ago)
Author:
SergeyBiryukov
Message:

Support Theme: Make sure the list item for topic resolution form is only added on single topics and topic edit pages.

Fixes #2503.

File:
1 edited

Legend:

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

    r4898 r4905  
    488488    <?php endif; ?>
    489489    <?php if ( function_exists( 'WordPressdotorg\Forums\Topic_Resolution\get_topic_resolution_form' ) ) : ?>
    490         <?php if ( WordPressdotorg\Forums\Topic_Resolution\Plugin::get_instance()->is_enabled_on_forum() ) : ?>
     490        <?php if ( WordPressdotorg\Forums\Topic_Resolution\Plugin::get_instance()->is_enabled_on_forum() && ( bbp_is_single_topic() || bbp_is_topic_edit() ) ) : ?>
    491491            <li class="topic-resolved"><?php WordPressdotorg\Forums\Topic_Resolution\get_topic_resolution_form( $topic_id ); ?></li>
    492492        <?php endif; ?>
Note: See TracChangeset for help on using the changeset viewer.