Making WordPress.org

Changeset 4714


Ignore:
Timestamp:
01/17/2017 10:20:03 PM (7 years ago)
Author:
coffee2code
Message:

Support Forums, Topic Resolution: Don't modify topic title on topic edit page.

Props SergeyBiryukov.
Fixes #2399.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-bbp-topic-resolution/inc/class-plugin.php

    r4664 r4714  
    6969    public function get_topic_title( $title, $topic_id ) {
    7070        // Only run when enabled on a topic's forum.
    71         if ( bbp_is_single_topic() || ! $this->is_enabled_on_forum( bbp_get_topic_forum_id( $topic_id ) ) ) {
     71        if ( ! $this->is_enabled_on_forum( bbp_get_topic_forum_id( $topic_id ) ) ) {
     72            return $title;
     73        }
     74
     75        // Don't run when viewing a single topic or a topic edit page.
     76        if ( bbp_is_single_topic() || bbp_is_topic_edit() ) {
    7277            return $title;
    7378        }
Note: See TracChangeset for help on using the changeset viewer.