Making WordPress.org

Ticket #2454: meta-2454.patch

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

     
    6767         * Add "Resolved" status to title.
    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;
    7378                }
     
    7782                        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;
    8388                }