Ticket #5085: change-email-subject.diff
File change-email-subject.diff, 2.3 KB (added by , 5 years ago) |
---|
-
trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/metabox/class-review-tools.php
8 8 namespace WordPressdotorg\Plugin_Directory\Admin\Metabox; 9 9 10 10 use WordPressdotorg\Plugin_Directory\Tools; 11 use WordPressdotorg\Plugin_Directory\Template; 11 12 12 13 /** 13 14 * The Plugin Review metabox. … … 259 260 260 261 if ( 'new' === $post->post_status || 'pending' === $post->post_status ) { 261 262 /* translators: %s: plugin title */ 262 $subject = sprintf( __( '[WordPress Plugin Directory] Re quest: %s', 'wporg-plugins' ), $post->post_title );263 $subject = sprintf( __( '[WordPress Plugin Directory] Review in Progress: %s', 'wporg-plugins' ), $post->post_title ); 263 264 } elseif ( 'rejected' === $post->post_status ) { 264 /* translators: %s: plugin title */265 /* translators: %s: Plugin Title */ 265 266 $subject = sprintf( __( '[WordPress Plugin Directory] Rejection Explanation: %s', 'wporg-plugins' ), $post->post_title ); 267 } elseif ( 'closed' === $post->post_status || 'disabled' === $post->post_status ) { 268 $close_reason = (string) get_post_meta( $post->ID, '_close_reason', true ); 269 $close_reasons = array( 270 'security-issue' => __( 'Security', 'wporg-plugins' ), 271 'guideline-violation' => __( 'Guideline Violation', 'wporg-plugins' ), 272 'licensing-trademark-violation' => __( 'Licensing/Trademark Violation', 'wporg-plugins' ), 273 ); 274 275 if ( isset( $close_reason ) && isset( $close_reasons[ $close_reason ] ) ) { 276 /* translators: %1: Closure Reason, %2: Plugin Title */ 277 $subject = sprintf( __( '[WordPress Plugin Directory] Closure Notice - %1: %2', 'wporg-plugins' ), $close_reasons[ $close_reason ], $post->post_title ); 278 } else { 279 /* translators: %s: Plugin Title */ 280 $subject = sprintf( __( '[WordPress Plugin Directory] Closure Notice: %s', 'wporg-plugins' ), $post->post_title ); 281 } 266 282 } else { 267 283 /* translators: %s: plugin title */ 268 284 $subject = sprintf( __( '[WordPress Plugin Directory] Notice: %s', 'wporg-plugins' ), $post->post_title );