Changeset 12003 for sites/trunk/wordpress.org/public_html/wp-content/plugins/gp-translation-helpers/includes/class-gp-notifications.php
- Timestamp:
- 08/01/2022 10:47:56 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/gp-translation-helpers/includes/class-gp-notifications.php
r11992 r12003 367 367 */ 368 368 public static function get_email_body( WP_Comment $comment, array $comment_meta ): string { 369 $post = get_post( $comment->comment_post_ID ); 370 $project = self::get_project_from_post( $post ); 371 $original = self::get_original( $comment ); 372 $output = ''; 369 $post = get_post( $comment->comment_post_ID ); 370 $project = self::get_project_from_post( $post ); 371 $original = self::get_original( $comment ); 372 $url = GP_Route_Translation_Helpers::get_permalink( $project->path, $original->id ); 373 $link_to_comment = $url . '#comment-' . $comment->comment_ID; 374 $output = ''; 373 375 /** 374 376 * Filters the content of the email at the beginning of the function that gets its content. … … 383 385 $output .= esc_html__( 'Hi there,', 'glotpress' ); 384 386 $output .= '<br><br>'; 385 $url = GP_Route_Translation_Helpers::get_permalink( $project->path, $original->id );386 387 $output .= wp_kses( 387 388 /* translators: The discussion URL where the user can find the comment. */ 388 sprintf( __( 'There is a new comment in a <a href="%1$s">GlotPress discussion</a> that may be of interest to you.', 'glotpress' ), $url),389 sprintf( __( 'There is a <a href="%1$s">new comment in a GlotPress discussion</a> that may be of interest to you.', 'glotpress' ), $link_to_comment ), 389 390 array( 390 391 'a' => array( 'href' => array() ),
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)