Making WordPress.org

Changeset 14975


Ignore:
Timestamp:
07/16/2026 03:40:20 PM (8 weeks ago)
Author:
obenland
Message:

Theme Directory: Don't auto-approve when Trac ticket creation failed

Closes https://github.com/WordPress/wordpress.org/pull/715.

Location:
sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/class-wporg-themes-upload.php

    r14966 r14975  
    795795                                        sprintf(
    796796                                                /* translators: %s: mailto link */
    797                                                 __( 'There was an error creating a Trac ticket for your theme, please report this error to %s', 'wporg-themes' ),
     797                                                __( 'There was an error creating a Trac ticket for your theme. This is usually temporary, so please wait a few minutes and try uploading again. If the error persists, report it to %s.', 'wporg-themes' ),
    798798                                                '<a href="mailto:themes@wordpress.org">themes@wordpress.org</a>'
    799799                                        )
     
    13511351                        ) );
    13521352
    1353                         // Themes team auto-approves theme-updates. Note that this only applies to new
    1354                         // ticket creation, so it won't happen on themes with existing outstanding tickets.
    1355                         if ( $this->trac_ticket->priority == 'theme update' ) {
     1353                        /*
     1354                         * Themes team auto-approves theme-updates. Note that this only applies to new
     1355                         * ticket creation, so it won't happen on themes with existing outstanding tickets.
     1356                         *
     1357                         * Skipped when ticket creation failed, as there's no ticket to act upon.
     1358                         */
     1359                        if ( $ticket_id && 'theme update' === $this->trac_ticket->priority ) {
    13561360                                $release_delay = wporg_themes_get_release_cooldown_delay( $this->theme_slug );
    13571361                                if ( $release_delay ) {
Note: See TracChangeset for help on using the changeset viewer.