Making WordPress.org


Ignore:
Timestamp:
01/20/2017 12:19:23 AM (10 years ago)
Author:
coffee2code
Message:

Support Forums: Ensure "Create Topic" link only displays on single forum views.

Props SergeyBiryukov.
Fixes #2409.

File:
1 edited

Legend:

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

    r4721 r4743  
    104104                                __( 'Edit Review', 'wporg-forums' ) :
    105105                                __( 'Add Review', 'wporg-forums' );
    106                 } elseif ( bbp_current_user_can_access_create_topic_form() ) {
     106                } elseif ( bbp_is_single_forum() && bbp_current_user_can_access_create_topic_form() ) {
    107107                        $create_label = __( 'Create Topic', 'wporg-forums' );
    108108                }
Note: See TracChangeset for help on using the changeset viewer.