Changeset 5707
- Timestamp:
- 07/20/2017 07:55:53 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/metabox/class-review-tools.php
r5643 r5707 32 32 } 33 33 34 if ( ' pending' != $post->post_status && 'new' != $post->post_status ) {34 if ( 'new' !== $post->post_status && 'pending' !== $post->post_status ) { 35 35 echo "<ul> 36 36 <li><a href='https://plugins.trac.wordpress.org/log/{$post->post_name}/'>" . __( 'Development Log', 'wporg-plugins' ) . "</a></li> … … 45 45 add_filter( 'wp_comment_reply', function( $string ) use ( $post ) { 46 46 $author = get_user_by( 'id', $post->post_author ); 47 48 $type = 'Notice'; 49 if ( $post->post_status == 'new' || $post->post_status == 'pending' ) { 50 $type = 'Request'; 47 48 if ( 'new' === $post->post_status || 'pending' === $post->post_status ) { 49 /* translators: %s: plugin title */ 50 $subject = sprintf( __( '[WordPress Plugin Directory] Request: %s', 'wporg-plugins' ), $post->post_title ); 51 } elseif ( 'rejected' === $post->post_status ) { 52 /* translators: %s: plugin title */ 53 $subject = sprintf( __( '[WordPress Plugin Directory] Rejection Explanation: %s', 'wporg-plugins' ), $post->post_title ); 54 } else { 55 /* translators: %s: plugin title */ 56 $subject = sprintf( __( '[WordPress Plugin Directory] Notice: %s', 'wporg-plugins' ), $post->post_title ); 51 57 } 52 58 … … 55 61 <input type="hidden" name="to_email" value="<?php echo esc_attr( $author->user_email ); ?>" /> 56 62 <input type="hidden" name="to_name" value="<?php echo esc_attr( $author->display_name ); ?>" /> 57 <input type="hidden" name="subject" value="<?php printf( esc_attr__( '[WordPress Plugin Directory] %s: %s', 'wporg-plugins' ), $type, $post->post_title); ?>" />63 <input type="hidden" name="subject" value="<?php echo esc_attr( $subject ); ?>" /> 58 64 <button class="button button-primary" type="submit"><?php _e( 'Contact plugin author', 'wporg-plugins' ); ?></button> 59 65 </form>
Note: See TracChangeset
for help on using the changeset viewer.