Making WordPress.org

Changeset 6035


Ignore:
Timestamp:
10/16/2017 02:33:15 AM (9 years ago)
Author:
SergeyBiryukov
Message:

Plugin Directory: Correct the logic for displaying "Close/Disable Reason" dropdown.

See #2860.

File:
1 edited

Legend:

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

    r6034 r6035  
    132132                                        ( in_array( 'closed', $statuses, true ) || in_array( 'disabled', $statuses, true ) )
    133133                                &&
    134                                         ! in_array( $post->post_status, array( 'closed', 'disabled' ) ) || $reason_unknown
     134                                        ( ! in_array( $post->post_status, array( 'closed', 'disabled' ) ) || $reason_unknown )
    135135                                ) : ?>
    136136
Note: See TracChangeset for help on using the changeset viewer.