Making WordPress.org

Changeset 13856


Ignore:
Timestamp:
06/25/2024 06:58:05 AM (2 years ago)
Author:
dd32
Message:

Plugin Directory: Release confirmation: Don't email special committers who cannot login.

These accounts may be used for plugin automations, or other automated WordPress.org tasks, but cannot login to confirm releases.

See #5352.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/cli/class-import.php

    r13726 r13856  
    180180                                        );
    181181
     182                                        /*
     183                                         * Trigger the release confirmation email.
     184                                         *
     185                                         * This goes to ALL committers, including who commited the change.
     186                                         * "bot" accounts are NOT emailed, nor are accounts that have web login disabled.
     187                                         */
     188                                        $who_to_email = array_diff(
     189                                                Tools::get_plugin_committers( $plugin_slug ),
     190                                                $GLOBALS['bot_accounts'] ?? [],
     191                                                $GLOBALS['nologin_accounts'] ?? []
     192                                        );
     193
    182194                                        $email = new Release_Confirmation_Email(
    183195                                                $plugin,
    184                                                 Tools::get_plugin_committers( $plugin_slug ),
     196                                                $who_to_email,
    185197                                                [
    186198                                                        'who'     => $last_committer,
Note: See TracChangeset for help on using the changeset viewer.