Making WordPress.org

Changeset 5903


Ignore:
Timestamp:
09/09/2017 03:55:06 PM (7 years ago)
Author:
SergeyBiryukov
Message:

Support Forums: Don't display the "Link to the page you need help with" field in "Create a new review" form.

Fixes #3112.

File:
1 edited

Legend:

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

    r5873 r5903  
    405405        $topic_id = bbp_get_topic_id();
    406406
    407         if ( Plugin::REVIEWS_FORUM_ID != bbp_get_topic_forum_id( $topic_id ) ) :
     407        if (
     408            Plugin::REVIEWS_FORUM_ID != bbp_get_topic_forum_id( $topic_id )
     409        &&
     410            ( ! bbp_is_single_view() || 'reviews' !== bbp_get_view_id() )
     411        ) :
    408412            $site_url = ( bbp_is_topic_edit() ) ? get_post_meta( $topic_id, self::SITE_URL_META, true ) : '';
    409413            ?>
Note: See TracChangeset for help on using the changeset viewer.