Making WordPress.org

Ticket #2399: meta-2399.patch

File meta-2399.patch, 1.1 KB (added by SergeyBiryukov, 7 years ago)
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-bbp-topic-resolution/inc/class-plugin.php

     
    6868         */
    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 ) ) ) {
    7272                        return $title;
    7373                }
    7474
     75                // Don't run when viewing a single topic or a topic edit page.
     76                if ( bbp_is_single_topic() || bbp_is_topic_edit() ) {
     77                        return $title;
     78                }
     79
    7580                // Don't run when displaying a title attribute via bbp_get_reply_title_fallback(), hooked to 'the_title'
    7681                if ( doing_filter( 'the_title' ) ) {
    7782                        return $title;