Changeset 6230
- Timestamp:
- 12/04/2017 05:17:46 PM (7 years ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-template.php
r6162 r6230 360 360 361 361 $icon = $icon_2x = $svg = $generated = false; 362 362 363 foreach ( $raw_icons as $file => $info ) { 363 364 switch ( $info['resolution'] ) { … … 387 388 } 388 389 389 if ( ! $icon ) {390 if ( ! $icon || 'publish' !== $plugin->post_status ) { 390 391 $generated = true; 391 392 -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/template-parts/plugin-single.php
r6225 r6230 60 60 default: 61 61 case 'closed': 62 $message 62 $message = __( 'This plugin has been closed and is no longer available for download.', 'wporg-plugins' ); 63 63 break; 64 64 } … … 84 84 85 85 <div class="entry-thumbnail"> 86 <?php 87 // Don't show the icon for closed plugins 88 if ( ! in_array( $status, array( 'closed', 'disabled' ) ) ) { 89 echo Template::get_plugin_icon( get_post(), 'html' ); 90 } 91 ?> 86 <?php echo Template::get_plugin_icon( get_post(), 'html' ); ?> 92 87 </div> 93 88
Note: See TracChangeset
for help on using the changeset viewer.