WordPress.org

Making WordPress.org

Changeset 9463


Ignore:
Timestamp:
02/04/2020 09:08:59 PM (6 months ago)
Author:
coffee2code
Message:

Support Forums: Also add 'Create Topic' link above support forums for plugins and themes, and reviews.

Props melchoyce, coffee2code.
See #3595.
Fixes #1977.

File:
1 edited

Legend:

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

    r9201 r9463  
    516516     */
    517517    public function new_topic_link() {
    518         if ( bbp_is_single_forum() ) {
     518        if (
     519            bbp_is_single_forum()
     520        ||
     521            bbp_is_single_view() && in_array( bbp_get_view_id(), array( 'plugin', 'reviews', 'theme' ) )
     522        ) {
    519523            if ( bbp_current_user_can_access_create_topic_form() ) {
    520524                printf(
Note: See TracChangeset for help on using the changeset viewer.