Making WordPress.org

Changeset 5561


Ignore:
Timestamp:
06/13/2017 10:24:02 AM (8 years ago)
Author:
tellyworth
Message:

Plugin directory: include plugin slug in submission emails, and improve messaging generally. Props @SergeyBiryukov

Fixes #2830

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/shortcodes/class-upload-handler.php

    r5471 r5561  
    114114            $error = __( 'The plugin has already been submitted.', 'wporg-plugins' );
    115115           
    116             /* translators: %s: plugin slug */
    117             return $error . ' ' . sprintf( __( 'You have already submitted a plugin called %s. Please be patient and wait for a review. If you have made a mistake, please email plugins@wordpress.org and let us know.', 'wporg-plugins' ),
    118                 '<code>' . $this->plugin_slug . '</code>'
     116            /* translators: 1: plugin slug, 2: plugins@wordpress.org */
     117            return $error . ' ' . sprintf( __( 'You have already submitted a plugin called %1$s. Please be patient and wait for a review. If you have made a mistake, please email <a href="mailto:%2$s">%2$s</a> and let us know.', 'wporg-plugins' ),
     118                '<code>' . $this->plugin_slug . '</code>',
     119                'plugins@wordpress.org'
    119120            );
    120121        }
     
    249250        do_action( 'plugin_upload', $this->plugin, $plugin_post );
    250251
     252        /* translators: 1: plugin name, 2: plugin slug, 3: plugins@wordpress.org */
     253        $message = sprintf( __( 'Thank you for uploading %1$s to the WordPress Plugin Directory. It has been given the initial plugin slug of %2$s, however that is subject to change based on the results of your code review.' ),
     254            esc_html( $this->plugin['Name'] ),
     255            '<code>' . $this->plugin_slug . '</code>'
     256        ) . '</p><p>';
     257
     258        /* translators: 1: plugins@wordpress.org */
     259        $message .= sprintf( __( 'We&rsquo;ve sent you an email verifying this submission. Please make sure to whitelist our email address - <a href="mailto:%1$s">%1$s</a> - to ensure you receive all our communications.' ),
     260            'plugins@wordpress.org'
     261        ) . '</p><p>';
     262
     263        $message .= __( 'If there is an error in your submission, such as you require a specific plugin slug or need a different user account to own the plugin, please email us as we can correct many issues before approval.', 'wporg-plugins' );
     264
    251265        // Success!
    252         /* translators: 1: plugin name */
    253         return sprintf( __( 'Thank you for uploading %1$s to the WordPress Plugin Directory. We&rsquo;ve sent you an email verifying this submission. Please make sure to whitelist our email address - plugins@wordpress.org - to ensure you receive all our communications.', 'wporg-plugins' ),
    254             esc_html( $this->plugin['Name'] )
    255         );
     266        return $message;
    256267    }
    257268
     
    360371        );
    361372
    362         /* translators: 1: plugin name, 2: Trac ticket URL */
    363         $email_content = sprintf( __( 'Thank you for uploading %1$s to the WordPress Plugin Directory. If your plugin is selected to be part of the directory we\'ll send a follow up email. If there is a problem with your plugin submission, such as an incorrect display name or slug, please reply to this email and let us know.
     373        /* translators: 1: plugin name, 2: plugin slug */
     374        $email_content = sprintf( __( 'Thank you for uploading %1$s to the WordPress Plugin Directory. We will review your submission as soon as possible and send you a follow up email with the results.
     375
     376Your plugin has been given the initial slug of %2$s, however this is subject to change based on the results of your review.
     377
     378If there is a problem with this submission, such as an incorrect display name or slug, please reply to this email and let us know. In most cases, we can correct errors as long as the plugin has not yet been approved. Please do not submit your plugin multiple times in an attempt to correct the issue, just email us.
    364379
    365380--
    366381The WordPress Plugin Directory Team
    367382https://make.wordpress.org/plugins', 'wporg-plugins' ),
    368             $this->plugin['Name']
     383            $this->plugin['Name'],
     384            $this->plugin_slug
    369385        );
    370386
Note: See TracChangeset for help on using the changeset viewer.