Making WordPress.org

Changeset 12519


Ignore:
Timestamp:
03/30/2023 03:54:08 AM (4 years ago)
Author:
dd32
Message:

Plugin Directory: Don't display 'unknown' close reason in the admin list, 'Closed' is enough.

See #6903, [12518].

File:
1 edited

Legend:

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

    r12518 r12519  
    406406                        // Affix the reason it's disabled.
    407407                        $reason = Template::get_close_reason( $post );
    408                         if ( $reason ) {
     408                        if ( $reason != _x( 'Unknown', 'unknown close reason', 'wporg-plugins' ) ) {
    409409                                $post_states['reason'] = $reason;
    410410                        }
    … …  
    414414                        // Affix the reason it's closed.
    415415                        $reason = Template::get_close_reason( $post );
    416                         if ( $reason ) {
     416                        if ( $reason != _x( 'Unknown', 'unknown close reason', 'wporg-plugins' ) ) {
    417417                                $post_states['reason'] = $reason;
    418418                        }
Note: See TracChangeset for help on using the changeset viewer.