WordPress.org

Making WordPress.org

Ticket #5299: 5299.diff

File 5299.diff, 2.4 KB (added by Ipstenu, 7 months ago)
  • trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/class-status-transitions.php

     
    291291         */
    292292        public function rejected( $post_id, $post ) {
    293293
     294                // Default data for review.
     295                $original_permalink = $post->post_name;
     296                $submission_date    = get_the_modified_date( 'F j, Y', $post_id );
     297
    294298                // Delete zips.
    295299                foreach ( get_attached_media( 'application/zip', $post_id ) as $attachment ) {
    296300                        wp_delete_attachment( $attachment->ID, true );
     
    306310                $email   = get_user_by( 'id', $post->post_author )->user_email;
    307311                $subject = sprintf( __( '[WordPress Plugin Directory] %s has been rejected', 'wporg-plugins' ), $post->post_title );
    308312
    309                 /* translators: 1: plugin name, 2: plugins@wordpress.org */
     313                /* translators: 1: plugin name, 2: plugin permalink, 3: date of submission, 4: plugins@wordpress.org */
    310314                $content = sprintf(
    311315                        __(
    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.
    313317
    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.
     318Plugins 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.
    315319
     320If 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
    316322--
    317323The WordPress Plugin Directory Team
    318324https://make.wordpress.org/plugins', 'wporg-plugins'
    319325                        ),
    320326                        $post->post_title,
     327                        $original_permalink,
     328                        $submission_date,
    321329                        'plugins@wordpress.org'
    322330                );
    323331
     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.
    324336                Tools::audit_log( 'Plugin rejected.', $post_id );
     337
     338                // Send email.
    325339                wp_mail( $email, $subject, $content, 'From: plugins@wordpress.org' );
    326340        }
    327341