Making WordPress.org

Changeset 1495


Ignore:
Timestamp:
04/22/2015 10:17:25 PM (11 years ago)
Author:
obenland
Message:

WP.org Themes: Use correct post status when checking for suspended themes.

See https://wordpress.slack.com/archives/meta/p1429740740000469

File:
1 edited

Legend:

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

    r1407 r1495  
    175175
    176176        // We know it's the correct author, now we can check if it's suspended.
    177         if ( ! empty( $this->theme_post ) && 'trash' === $this->theme_post->post_status ) {
     177        if ( ! empty( $this->theme_post ) && 'suspend' === $this->theme_post->post_status ) {
    178178            return sprintf( __( 'This theme is suspended from the Theme Repository and it can&rsquo;t be updated. If you have any questions about this please contact %s.', 'wporg-themes' ), '<a href="mailto:themes@wordpress.org">themes@wordpress.org</a>' );
    179179        }
Note: See TracChangeset for help on using the changeset viewer.