Making WordPress.org

Changeset 9198


Ignore:
Timestamp:
10/17/2019 06:57:52 AM (5 years ago)
Author:
dd32
Message:

Theme Review: When a newer version of an approved theme, that it not yet live is made, update the existing ticket rather than creating a new one.

Fixes #3224.

File:
1 edited

Legend:

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

    r9087 r9198  
    746746            $ticket    = $this->trac->ticket_get( $ticket_id );
    747747
    748             // Make sure the ticket has no resolution and is not approved (3 = ticket attributes).
    749             if ( empty( $ticket[3]['resolution'] ) && 'approved' !== $ticket[3]['status'] ) {
     748            // Make sure the ticket has not yet been resolved.
     749            if ( empty( $ticket[3]['resolution'] ) ) {
    750750                $result    = $this->trac->ticket_update( $ticket_id, $this->trac_ticket->description, array( 'summary' => $this->trac_ticket->summary, 'keywords' => implode( ' ', $this->trac_ticket->keywords ) ), true /* Trigger email notifications */ );
    751751                $ticket_id = $result ? $ticket_id : false;
Note: See TracChangeset for help on using the changeset viewer.