Changeset 12518
- Timestamp:
- 03/30/2023 03:52:03 AM (21 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/class-customizations.php
r12517 r12518 4 4 use \WordPressdotorg\Plugin_Directory; 5 5 use \WordPressdotorg\Plugin_Directory\Tools; 6 use \WordPressdotorg\Plugin_Directory\Template; 6 7 use \WordPressdotorg\Plugin_Directory\Readme\Validator; 7 8 use \WordPressdotorg\Plugin_Directory\Admin\List_Table\Plugin_Posts; … … 403 404 if ( 'disabled' == $post->post_status && 'disabled' != $post_status ) { 404 405 $post_states['disabled'] = _x( 'Disabled', 'plugin status', 'wporg-plugins' ); 406 // Affix the reason it's disabled. 407 $reason = Template::get_close_reason( $post ); 408 if ( $reason ) { 409 $post_states['reason'] = $reason; 410 } 405 411 } 406 412 if ( 'closed' == $post->post_status && 'closed' != $post_status ) { 407 413 $post_states['closed'] = _x( 'Closed', 'plugin status', 'wporg-plugins' ); 414 // Affix the reason it's closed. 415 $reason = Template::get_close_reason( $post ); 416 if ( $reason ) { 417 $post_states['reason'] = $reason; 418 } 408 419 } 409 420 if ( 'rejected' == $post->post_status && 'rejected' != $post_status ) {
Note: See TracChangeset
for help on using the changeset viewer.