Making WordPress.org

Changeset 12178


Ignore:
Timestamp:
11/01/2022 07:51:18 AM (11 months ago)
Author:
dd32
Message:

Plugin Directory: Release Confirmation: Update the copy of the release-confirmations-enabled email.

Fixes #5698.

Location:
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/api/routes/class-plugin-release-confirmation.php

    r11744 r12178  
    131131            $plugin,
    132132            Tools::get_plugin_committers( $plugin->post_name ),
    133             []
     133            [
     134                // Don't include the plugin reviewer who triggered this.
     135                'who' => is_admin() ? 'WordPress.org' : null,
     136            ]
    134137        );
    135138        $email->send();
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/email/class-base.php

    r11260 r12178  
    168168     */
    169169    public function user_text( $user ) {
     170        // Allow passing 'who=WordPress.org' instead of a user object.
     171        if ( 'WordPress.org' === $user ) {
     172            return 'WordPress.org';
     173        }
     174
    170175        if ( ! $user instanceof WP_User ) {
    171176            $user = new WP_User( $user );
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/email/class-release-confirmation-enabled.php

    r10214 r12178  
    1616
    1717    function body() {
    18         /* translators: 1: Plugin Author, 2: Plugin Name, 3: URL to the handbook */
     18        /* translators: 1: Plugin Author, 2: User Name, 5: Plugin Name, 4: Plugin URL, 5: Plugin slug, 6: URL to the handbook */
    1919        return sprintf(
    2020            __( 'Howdy %1$s,
    2121
    22 Release confirmations are now enabled for %2$s.
     22%2$s has enabled release confirmations for the following plugin:
     23%3$s
     24%4$s
    2325
    24 This means that each time you release a new version of %2$s you\'ll be required to confirm the release by following a link in an automated email.
     26A new email will be sent to all committers when a new pending release exists for %5$s with a link to the Release Management dashboard.
     27
     28You, or another committer to the plugin, will be required to confirm the release on that dashboard before WordPress.org processes the newly committed plugin update.
    2529
    2630For more information, please read the following handbook article:
    27 %3$s', 'wporg-plugins' ),
     31%6$s', 'wporg-plugins' ),
    2832            $this->user_text( $this->user ),
     33            $this->user_text( $this->who ),
    2934            $this->plugin->post_title,
    30             'https://developer.wordpress.org/plugins/wordpress-org/' // TODO: Handbook page.
     35            get_permalink( $this->plugin ),
     36            $this->plugin->post_name,
     37            'https://developer.wordpress.org/plugins/wordpress-org/release-confirmation-emails/'
    3138        );
    3239    }
Note: See TracChangeset for help on using the changeset viewer.