Making WordPress.org


Ignore:
Timestamp:
07/07/2020 03:39:52 AM (4 years ago)
Author:
dd32
Message:

Plugin Directory: Update the rejection email to be more clear about what happens next.

Props Ipstenu.
Fixes #5299.

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  
    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 ) {
     
    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.
    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
     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.
     319
     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.
    315321
    316322--
     
    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    }
Note: See TracChangeset for help on using the changeset viewer.