Making WordPress.org

Changeset 4998


Ignore:
Timestamp:
02/24/2017 10:58:11 AM (8 years ago)
Author:
ocean90
Message:

Support Forums, Topic Resolution: Don't modify topic title in feeds and on a single reply or reply edit page.

Props SergeyBiryukov.
Fixes #2498, #2533.

File:
1 edited

Legend:

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

    r4811 r4998  
    6868     */
    6969    public function get_topic_title( $title, $topic_id ) {
    70         // Don't run in the admin.
    71         if ( is_admin() ) {
     70        // Don't run in the admin or in feeds.
     71        if ( is_admin() || is_feed() ) {
    7272            return $title;
    7373        }
     
    7878        }
    7979
    80         // Don't run when viewing a single topic or a topic edit page.
    81         if ( bbp_is_single_topic() || bbp_is_topic_edit() ) {
     80        // Don't run when viewing a single topic, a single reply, a topic edit page, or a reply edit page.
     81        if ( bbp_is_single_topic() || bbp_is_single_reply() || bbp_is_topic_edit() || bbp_is_reply_edit() ) {
    8282            return $title;
    8383        }
Note: See TracChangeset for help on using the changeset viewer.