WordPress.org

Making WordPress.org

Changeset 11059


Ignore:
Timestamp:
06/25/2021 12:33:56 AM (5 months ago)
Author:
dd32
Message:

Theme Directory: Auto-approve theme updates, even if it's been 2+ years since the last update.

Fixes #5787.

File:
1 edited

Legend:

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

    r11038 r11059  
    952952            ) );
    953953
    954             $theme_is_older_than_two_years = $this->theme_post && ( strtotime( $this->theme_post->post_modified ) < strtotime( '-2 years' ) );
    955 
    956             // Theme review team auto-approves theme-updates, so mark the theme as live immediately, if last updated within two years.
     954            // Theme review team auto-approves theme-updates, so mark the theme as live immediately.
    957955            // Note that this only applies to new ticket creation, so it won't happen on themes with existing outstanding tickets
    958             if ( ! $theme_is_older_than_two_years && $this->trac_ticket->priority == 'theme update' ) {
     956            if ( $this->trac_ticket->priority == 'theme update' ) {
    959957                $this->trac->ticket_update( $ticket_id, 'Theme Update for existing Live theme - automatically reviewed & approved', array( 'action' => 'new_no_review' ), false );
    960958
Note: See TracChangeset for help on using the changeset viewer.