Ticket #2677: 2677.2.diff
File 2677.2.diff, 1.8 KB (added by , 7 years ago) |
---|
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/metabox/class-review-tools.php
42 42 43 43 add_filter( 'wp_comment_reply', function( $string ) use ( $post ) { 44 44 $author = get_user_by( 'id', $post->post_author ); 45 46 $type = 'Notice'; 45 47 46 if ( $post->post_status == 'new' || $post->post_status == 'pending' ) { 48 $type = 'Request'; 47 /* translators: %s: Plugin title */ 48 $subject = sprintf( __( '[WordPress Plugin Directory] Request: %s', 'wporg-plugins' ), $post->post_title ); 49 } else { 50 /* translators: %s: Plugin title */ 51 $subject = sprintf( __( '[WordPress Plugin Directory] Notice: %s', 'wporg-plugins' ), $post->post_title ); 49 52 } 50 53 51 54 ?> … … 52 55 <form id="contact-author" class="contact-author" method="POST" action="https://supportpress.wordpress.org/plugins/thread-new.php"> 53 56 <input type="hidden" name="to_email" value="<?php echo esc_attr( $author->user_email ); ?>" /> 54 57 <input type="hidden" name="to_name" value="<?php echo esc_attr( $author->display_name ); ?>" /> 55 <input type="hidden" name="subject" value="<?php printf( esc_attr__( '[WordPress Plugin Directory] %s: %s', 'wporg-plugins' ), $type, $post->post_title); ?>" />58 <input type="hidden" name="subject" value="<?php echo esc_attr( $subject ); ?>" /> 56 59 <button class="button button-primary" type="submit"><?php _e( 'Contact plugin author', 'wporg-plugins' ); ?></button> 57 60 </form> 58 61 <?php