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