Changeset 12012 for sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-bbp-term-subscription/inc/class-plugin.php
- Timestamp:
- 08/10/2022 05:03:34 PM (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
r11662 r12012 115 115 if ( $is_subscribed ) { 116 116 $message = sprintf( 117 __( 'You are subscribed to this forum, and will receive emails for future topic activity. <a href="%1$s">Unsubscribe from %2$s .</a>', 'wporg-forums' ),117 __( 'You are subscribed to this forum, and will receive emails for future topic activity. <a href="%1$s">Unsubscribe from %2$s</a>.', 'wporg-forums' ), 118 118 self::get_subscription_url( get_current_user_id(), $term->term_id, $this->taxonomy ), 119 119 esc_html( $term->name ) … … 169 169 170 170 if ( ! $user_id ) { 171 bbp_add_error( 'wporg_bbp_subscribe_invalid_token', __( '<strong>E RROR</strong>:Link expired!', 'wporg-forums' ) );171 bbp_add_error( 'wporg_bbp_subscribe_invalid_token', __( '<strong>Error:</strong> Link expired!', 'wporg-forums' ) ); 172 172 return false; 173 173 } … … 206 206 // Check for empty term id. 207 207 if ( empty( $user_id ) ) { 208 bbp_add_error( 'wporg_bbp_subscribe_logged_id', __( '<strong>E RROR</strong>:You must be logged in to do this!', 'wporg-forums' ) );208 bbp_add_error( 'wporg_bbp_subscribe_logged_id', __( '<strong>Error:</strong> You must be logged in to do this!', 'wporg-forums' ) ); 209 209 210 210 // Check nonce. 211 211 } elseif ( 'token' !== $auth && ! bbp_verify_nonce_request( 'toggle-term-subscription_' . $user_id . '_' . $term_id . '_' . $this->taxonomy ) ) { 212 bbp_add_error( 'wporg_bbp_subscribe_nonce', __( '<strong>E RROR</strong>:Are you sure you wanted to do that?', 'wporg-forums' ) );212 bbp_add_error( 'wporg_bbp_subscribe_nonce', __( '<strong>Error:</strong> Are you sure you wanted to do that?', 'wporg-forums' ) ); 213 213 214 214 // Check user's ability to spectate if attempting to subscribe to a term. 215 215 } elseif ( ! user_can( $user_id, 'spectate' ) && 'wporg_bbp_subscribe_term' === $action ) { 216 bbp_add_error( 'wporg_bbp_subscribe_permissions', __( '<strong>E RROR</strong>:You don\'t have permission to do this!', 'wporg-forums' ) );216 bbp_add_error( 'wporg_bbp_subscribe_permissions', __( '<strong>Error:</strong> You don\'t have permission to do this!', 'wporg-forums' ) ); 217 217 } 218 218 … … 246 246 } elseif ( true === $is_subscribed && 'wporg_bbp_subscribe_term' === $action ) { 247 247 /* translators: Term: topic tag */ 248 bbp_add_error( 'wporg_bbp_subscribe_user', __( '<strong>E RROR</strong>:There was a problem subscribing to that term!', 'wporg-forums' ) );248 bbp_add_error( 'wporg_bbp_subscribe_user', __( '<strong>Error:</strong> There was a problem subscribing to that term!', 'wporg-forums' ) ); 249 249 } elseif ( false === $is_subscribed && 'wporg_bbp_unsubscribe_term' === $action ) { 250 250 /* translators: Term: topic tag */ 251 bbp_add_error( 'wporg_bbp_unsubscribe_user', __( '<strong>E RROR</strong>:There was a problem unsubscribing from that term!', 'wporg-forums' ) );251 bbp_add_error( 'wporg_bbp_unsubscribe_user', __( '<strong>Error:</strong> There was a problem unsubscribing from that term!', 'wporg-forums' ) ); 252 252 } 253 253 } … … 361 361 %4$s 362 362 363 To unsubscribe from future emails click here:363 To unsubscribe from future emails, click here: 364 364 ####UNSUB_LINK####', 'wporg-forums' ), 365 365 $topic_author_name, … … 503 503 %4$s 504 504 505 To unsubscribe from future emails click here:505 To unsubscribe from future emails, click here: 506 506 ####UNSUB_LINK####', 'wporg-forums' ), 507 507 $reply_author_name,
Note: See TracChangeset
for help on using the changeset viewer.