Making WordPress.org

Changeset 11653


Ignore:
Timestamp:
03/09/2022 04:58:48 AM (5 years ago)
Author:
dd32
Message:

Support Forums: Prefix the plugi/themen name only to email notifications, do not include the Forum name or Forum Site name as a prefix.

eg. This changes it from [WordPress.org Forums] [Plugin Name] Thread title to just [Plugin Name] Thread title.

See #6079.

File:
1 edited

Legend:

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

    r11580 r11653  
    378378         * Replace the forum subscription subject/title with term-specific messaging.
    379379         *
     380         * Eg, before it would be similar to `[Plugins] This is my thread title`.
     381         * This changes it to `[Plugin Name] Thread title`.
     382         *
    380383         * @param string $title The current title
    381384         * @param int $topic_id The topic id
     
    388391
    389392                if ( $this->directory && $this->directory->title() ) {
    390                         $blog_name = wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES );
    391                         $topic_title = strip_tags( bbp_get_topic_title( $topic_id ) );
    392 
    393                         // [WordPress.org] [Plugin Name] This is my threads
    394                         $title = sprintf( '[%s] [%s] %s', $blog_name, $this->directory->title(), $topic_title );
     393                        // [Plugin Name] This is my thread title
     394                        $title = sprintf(
     395                                '[%s] %s',
     396                                $this->directory->title(),
     397                                strip_tags( bbp_get_topic_title( $topic_id ) )
     398                        );
    395399                }
    396400
     
    516520         * Replace the topic subscription subject/title with term-specific messaging.
    517521         *
     522         * Eg, before it would be similar to `[Plugins] This is my thread title`.
     523         * This changes it to `[Plugin Name] Thread title`.
     524         *
    518525         * @param string $title    The current title
    519526         * @param int    $reply_id The reply id
     
    527534
    528535                if ( $this->directory && $this->directory->title() ) {
    529                         $blog_name = wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES );
    530                         $topic_title = strip_tags( bbp_get_topic_title( $topic_id ) );
    531 
    532                         // [WordPress.org] [Plugin Name] This is my threads
    533                         $title = sprintf( '[%s] [%s] %s', $blog_name, $this->directory->title(), $topic_title );
     536                        // [Plugin Name] This is my thread title
     537                        $title = sprintf(
     538                                '[%s] %s',
     539                                $this->directory->title(),
     540                                strip_tags( bbp_get_topic_title( $topic_id ) )
     541                        );
    534542                }
    535543
Note: See TracChangeset for help on using the changeset viewer.