Changeset 11653
- Timestamp:
- 03/09/2022 04:58:48 AM (3 years ago)
- 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 378 378 * Replace the forum subscription subject/title with term-specific messaging. 379 379 * 380 * Eg, before it would be similar to `[Plugins] This is my thread title`. 381 * This changes it to `[Plugin Name] Thread title`. 382 * 380 383 * @param string $title The current title 381 384 * @param int $topic_id The topic id … … 388 391 389 392 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 ); 395 399 } 396 400 … … 516 520 * Replace the topic subscription subject/title with term-specific messaging. 517 521 * 522 * Eg, before it would be similar to `[Plugins] This is my thread title`. 523 * This changes it to `[Plugin Name] Thread title`. 524 * 518 525 * @param string $title The current title 519 526 * @param int $reply_id The reply id … … 527 534 528 535 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 ); 534 542 } 535 543
Note: See TracChangeset
for help on using the changeset viewer.