Making WordPress.org


Ignore:
Timestamp:
02/17/2017 07:51:06 PM (8 years ago)
Author:
SergeyBiryukov
Message:

Support Forums: Only show "Reply and mark as resolved" checkbox if Topic Resolution plugin is enabled on the current forum.

Fixes #2513.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-hooks.php

    r4909 r4914  
    186186    public function add_extra_reply_actions() {
    187187        if ( class_exists( 'WordPressdotorg\Forums\Topic_Resolution\Plugin' ) ) :
    188             if ( Topic_Resolution\Plugin::get_instance()->user_can_resolve( get_current_user_id(), bbp_get_topic_id() ) ) : ?>
     188            $topic_resolution_plugin = Topic_Resolution\Plugin::get_instance();
     189
     190            if ( $topic_resolution_plugin->is_enabled_on_forum() && $topic_resolution_plugin->user_can_resolve( get_current_user_id(), bbp_get_topic_id() ) ) : ?>
    189191                <p>
    190192                    <input name="bbp_reply_mark_resolved" id="bbp_reply_mark_resolved" type="checkbox" value="yes" />
Note: See TracChangeset for help on using the changeset viewer.