diff --git a/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-directory-compat.php b/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-directory-compat.php
index 8b632b6..6ebdd7c 100644
|
a
|
b
|
abstract class Directory_Compat { |
| 751 | 751 | if ( 'plugin' == $this->compat() ) { |
| 752 | 752 | $subscribe = esc_html__( 'Subscribe to this plugin', 'wporg-forums' ); |
| 753 | 753 | $unsubscribe = esc_html__( 'Unsubscribe from this plugin', 'wporg-forums' ); |
| | 754 | $subscribe_description = esc_html__( 'Receive email updates about new topics on this plugin', 'wporg-forums' ); |
| | 755 | $unsubscribe_description = esc_html__( 'Unsubscribe from email updates about new topics on this plugin', 'wporg-forums' ); |
| 754 | 756 | } else { |
| 755 | 757 | $subscribe = esc_html__( 'Subscribe to this theme', 'wporg-forums' ); |
| 756 | 758 | $unsubscribe = esc_html__( 'Unsubscribe from this theme', 'wporg-forums' ); |
| | 759 | $subscribe_description = esc_html__( 'Receive email updates about new topics on this theme', 'wporg-forums' ); |
| | 760 | $unsubscribe_description = esc_html__( 'Unsubscribe from email updates about new topics on this theme', 'wporg-forums' ); |
| 757 | 761 | } |
| 758 | 762 | $term_subscription = Term_Subscription\Plugin::get_subscription_link( array( |
| 759 | 763 | 'term_id' => $term->term_id, |
| 760 | 764 | 'taxonomy' => $this->taxonomy(), |
| 761 | 765 | 'subscribe' => $subscribe, |
| 762 | 766 | 'unsubscribe' => $unsubscribe, |
| | 767 | 'subscribe_description' => $subscribe_description, |
| | 768 | 'unsubscribe_description' => $unsubscribe_description, |
| 763 | 769 | ) ); |
| 764 | 770 | } |
| 765 | 771 | |
diff --git a/wordpress.org/public_html/wp-content/plugins/wporg-bbp-term-subscription/inc/class-plugin.php b/wordpress.org/public_html/wp-content/plugins/wporg-bbp-term-subscription/inc/class-plugin.php
index 08f77d4..fa41167 100644
|
a
|
b
|
class Plugin { |
| 226 | 226 | // Strip tags from text and set up message body. |
| 227 | 227 | $topic_content = strip_tags( bbp_get_topic_content( $topic_id ) ); |
| 228 | 228 | $topic_url = get_permalink( $topic_id ); |
| 229 | | |
| | 229 | $forum_url = get_permalink( $forum_id ) |
| 230 | 230 | $message = sprintf( __( '%1$s wrote: |
| 231 | 231 | |
| 232 | 232 | %2$s |
| … |
… |
Topic Link: %3$s |
| 237 | 237 | |
| 238 | 238 | %4$s |
| 239 | 239 | |
| 240 | | Login and visit the topic to reply to the topic or unsubscribe from these emails. Note that replying to this email has no effect.', 'wporg-forums' ), |
| | 240 | Login and visit the topic to reply. |
| | 241 | To no longer receive emails about this topic, please visit the link below to unsubscribe: |
| | 242 | %5$s |
| | 243 | Note that replying to this email has no effect.', 'wporg-forums' ), |
| 241 | 244 | $topic_author_name, |
| 242 | 245 | $topic_content, |
| 243 | 246 | $topic_url, |
| 244 | 247 | // String may not have placeholders, ie. in the case of tags. |
| 245 | | sprintf( $this->labels['receipt'], $this->directory ? $this->directory->title() : '' ) |
| | 248 | sprintf( $this->labels['receipt'], $this->directory ? $this->directory->title() : '' ), |
| | 249 | $forum_url, |
| 246 | 250 | ); |
| 247 | 251 | |
| 248 | 252 | return $message; |
| … |
… |
Login and visit the topic to reply to the topic or unsubscribe from these emails |
| 579 | 583 | 'taxonomy' => 'topic-tag', |
| 580 | 584 | 'subscribe' => esc_html__( 'Subscribe to this topic tag', 'wporg-forums' ), |
| 581 | 585 | 'unsubscribe' => esc_html__( 'Unsubscribe from this topic tag', 'wporg-forums' ), |
| | 586 | 'subscribe_description' => esc_html__( 'Receive email updates about new topics', 'wporg-forums' ), |
| | 587 | 'unsubscribe_description' => esc_html__( 'Unsubscribe from email updates about new topics', 'wporg-forums' ), |
| 582 | 588 | ), 'get_term_subscription_link' ); |
| 583 | 589 | if ( empty( $r['user_id'] ) || empty( $r['term_id'] ) || empty( $r['taxonomy'] ) ) { |
| 584 | 590 | return false; |
| … |
… |
Login and visit the topic to reply to the topic or unsubscribe from these emails |
| 590 | 596 | |
| 591 | 597 | $url = self::get_subscription_url( $r['user_id'], $r['term_id'], $r['taxonomy'] ); |
| 592 | 598 | $text = $r['subscribe']; |
| | 599 | $description = $r['subscribe_description']; |
| 593 | 600 | if ( self::is_user_subscribed_to_term( $r['user_id'], $r['term_id'] ) ) { |
| 594 | 601 | $text = $r['unsubscribe']; |
| | 602 | $description = $r['unsubscribe_description']; |
| 595 | 603 | } |
| 596 | | return sprintf( "<div class='wporg-bbp-term-subscription'><a href='%s'>%s</a></div>", |
| | 604 | |
| | 605 | return sprintf( "<div class='wporg-bbp-term-subscription'><a href='%s'>%s</a> <div class='notice notice-info notice-alt'>%s</div></div>", |
| 597 | 606 | $url, |
| 598 | | esc_html( $text ) ); |
| | 607 | esc_html( $text ), |
| | 608 | esc_html( $description ) |
| | 609 | ); |
| 599 | 610 | } |
| 600 | 611 | |
| 601 | 612 | public static function get_valid_actions() { |