Ticket #5299: 5299.diff
File 5299.diff, 2.4 KB (added by , 4 years ago) |
---|
-
trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/class-status-transitions.php
291 291 */ 292 292 public function rejected( $post_id, $post ) { 293 293 294 // Default data for review. 295 $original_permalink = $post->post_name; 296 $submission_date = get_the_modified_date( 'F j, Y', $post_id ); 297 294 298 // Delete zips. 295 299 foreach ( get_attached_media( 'application/zip', $post_id ) as $attachment ) { 296 300 wp_delete_attachment( $attachment->ID, true ); … … 306 310 $email = get_user_by( 'id', $post->post_author )->user_email; 307 311 $subject = sprintf( __( '[WordPress Plugin Directory] %s has been rejected', 'wporg-plugins' ), $post->post_title ); 308 312 309 /* translators: 1: plugin name, 2: plugin s@wordpress.org */313 /* translators: 1: plugin name, 2: plugin permalink, 3: date of submission, 4: plugins@wordpress.org */ 310 314 $content = sprintf( 311 315 __( 312 'Unfortunately your plugin submission for %1$s has been rejected from the WordPress Plugin Directory.316 'Unfortunately your plugin submission for %1$s (%2$s), submitted on %3$s, has been rejected from the WordPress Plugin Directory. 313 317 314 If you believe this to be in error, please email %2$s with your plugin attached as a zip and explain why you feel your plugin should be an exception.318 Plugins are rejected after six months when there has not been significant progress made on the review. If this is not the case for your plugin, you will receive a followup email explaining the reason for this decision within the next 24 hours. 315 319 320 If you believe this to be in error, please email %4$s with your plugin attached as a zip and explain why you feel your plugin should be accepted. 321 316 322 -- 317 323 The WordPress Plugin Directory Team 318 324 https://make.wordpress.org/plugins', 'wporg-plugins' 319 325 ), 320 326 $post->post_title, 327 $original_permalink, 328 $submission_date, 321 329 'plugins@wordpress.org' 322 330 ); 323 331 332 // Update last_updated to now. 333 update_post_meta( $post_id, 'last_updated', gmdate( 'Y-m-d H:i:s' ); 334 335 // Log rejection. 324 336 Tools::audit_log( 'Plugin rejected.', $post_id ); 337 338 // Send email. 325 339 wp_mail( $email, $subject, $content, 'From: plugins@wordpress.org' ); 326 340 } 327 341