Making WordPress.org

Changeset 4811


Ignore:
Timestamp:
01/27/2017 06:49:08 PM (5 years ago)
Author:
coffee2code
Message:

Support Forums, Topic Resolution: Don't modify topic title in the admin.

Props SergeyBiryukov.
Fixes #2454.

File:
1 edited

Legend:

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

    r4714 r4811  
    6868     */
    6969    public function get_topic_title( $title, $topic_id ) {
    70         // Only run when enabled on a topic's forum.
     70        // Don't run in the admin.
     71        if ( is_admin() ) {
     72            return $title;
     73        }
     74
     75        // Don't run if not enabled on a topic's forum.
    7176        if ( ! $this->is_enabled_on_forum( bbp_get_topic_forum_id( $topic_id ) ) ) {
    7277            return $title;
     
    7883        }
    7984
    80         // Don't run when displaying a title attribute via bbp_get_reply_title_fallback(), hooked to 'the_title'
     85        // Don't run when displaying a title attribute via bbp_get_reply_title_fallback(), hooked to 'the_title'.
    8186        if ( doing_filter( 'the_title' ) ) {
    8287            return $title;
Note: See TracChangeset for help on using the changeset viewer.