Changeset 6539
- Timestamp:
- 02/05/2018 10:43:29 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/template-parts/plugin-single.php
r6475 r6539 79 79 80 80 foreach ( array( 'description', 'screenshots', 'installation', 'faq', 'reviews', 'developers', 'changelog' ) as $section_slug ) : 81 if ( ! isset( $content[ $section_slug ] ) ) {82 continue;83 }84 85 81 $section_content = ''; 86 82 87 83 if ( 'description' === $section_slug && $is_closed ) { 88 // Don't show the description for closed plugins .84 // Don't show the description for closed plugins, show a notice instead. 89 85 $section_content = get_closed_plugin_notice(); 90 86 91 87 } elseif ( ! in_array( $section_slug, [ 'screenshots', 'installation', 'faq', 'changelog' ], true ) || ! $is_closed ) { 92 $section_content = trim( apply_filters( 'the_content', $content[ $section_slug ], $section_slug ) ); 88 if ( isset( $content[ $section_slug ] ) ) { 89 $section_content = trim( apply_filters( 'the_content', $content[ $section_slug ], $section_slug ) ); 90 } 93 91 } 94 92
Note: See TracChangeset
for help on using the changeset viewer.