Changeset 6250
- Timestamp:
- 12/08/2017 05:33:42 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-template.php
r6230 r6250 347 347 348 348 /** 349 * Retrieve the Plugin Icondetails for a plugin.349 * Retrieve the Plugin banner details for a plugin. 350 350 * 351 351 * @static … … 435 435 public static function get_plugin_banner( $post = null, $output = 'raw' ) { 436 436 $plugin = get_post( $post ); 437 438 if ( in_array( $plugin->post_status, ['disabled', 'closed'], true ) ) { 439 return false; 440 } 437 441 438 442 $banner = $banner_2x = false; … … 690 694 $close_reasons = self::get_close_reasons(); 691 695 $close_reason = (string) get_post_meta( $post->ID, '_close_reason', true ); 692 696 693 697 if ( isset( $close_reasons[ $close_reason ] ) ) { 694 698 $reason_label = $close_reasons[ $close_reason ];
Note: See TracChangeset
for help on using the changeset viewer.