WordPress.org

Making WordPress.org


Ignore:
Timestamp:
03/17/2017 02:27:21 PM (2 years ago)
Author:
SergeyBiryukov
Message:

Support Forums: Simplify condition in Directory_Compat::get_topic_title().

File:
1 edited

Legend:

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

    r5153 r5154  
    364364    public function get_topic_title( $title, $topic_id ) {
    365365        if (
    366             ( bbp_is_single_forum() && bbp_get_forum_id() == $this->forum_id() )
    367         ||
    368             ( bbp_is_single_forum() && Plugin::REVIEWS_FORUM_ID == bbp_get_forum_id() )
     366            ( bbp_is_single_forum() && in_array( bbp_get_forum_id(), array( $this->forum_id(), Plugin::REVIEWS_FORUM_ID ) ) )
    369367        ||
    370368            ( bbp_is_single_view() && ! in_array( bbp_get_view_id(), $this->compat_views() ) )
Note: See TracChangeset for help on using the changeset viewer.