Changeset 10023 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/class-status-transitions.php
- Timestamp:
- 07/07/2020 03:39:52 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/class-status-transitions.php
r9682 r10023 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 ) { … … 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. 313 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. 316 'Unfortunately your plugin submission for %1$s (%2$s), submitted on %3$s, has been rejected from the WordPress Plugin Directory. 317 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. 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. 315 321 316 322 -- … … 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 }
Note: See TracChangeset
for help on using the changeset viewer.