Ticket #2677: 2677.3.diff
File 2677.3.diff, 2.0 KB (added by , 7 years ago) |
---|
-
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 } elseif ( $post->post_status == 'rejected' ) { 50 /* translators: %s: Plugin title */ 51 $subject = sprintf( __( '[WordPress Plugin Directory] Rejection Explanation: %s', 'wporg-plugins' ), $post->post_title ); 52 } else { 53 /* translators: %s: Plugin title */ 54 $subject = sprintf( __( '[WordPress Plugin Directory] Notice: %s', 'wporg-plugins' ), $post->post_title ); 49 55 } 50 56 51 57 ?> … … 52 58 <form id="contact-author" class="contact-author" method="POST" action="https://supportpress.wordpress.org/plugins/thread-new.php"> 53 59 <input type="hidden" name="to_email" value="<?php echo esc_attr( $author->user_email ); ?>" /> 54 60 <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); ?>" />61 <input type="hidden" name="subject" value="<?php echo esc_attr( $subject ); ?>" /> 56 62 <button class="button button-primary" type="submit"><?php _e( 'Contact plugin author', 'wporg-plugins' ); ?></button> 57 63 </form> 58 64 <?php