Changeset 8547 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/template-parts/plugin-single.php
- Timestamp:
- 03/27/2019 09:48:47 PM (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
r8032 r8547 79 79 $plugin_sections = Template::get_plugin_sections(); 80 80 81 foreach ( array( 'description', 'screenshots', ' installation', 'faq', 'reviews', 'developers', 'changelog' ) as $section_slug ) :81 foreach ( array( 'description', 'screenshots', 'blocks', 'installation', 'faq', 'reviews', 'developers', 'changelog' ) as $section_slug ) : 82 82 $section_content = ''; 83 83 … … 86 86 $section_content = get_closed_plugin_notice(); 87 87 88 } elseif ( 'blocks' === $section_slug ) { 89 $section_content = get_post_meta( get_the_ID(), 'all_blocks', true ); 88 90 } elseif ( ! in_array( $section_slug, [ 'screenshots', 'installation', 'faq', 'changelog' ], true ) || ! $is_closed ) { 89 91 if ( isset( $content[ $section_slug ] ) ) { … … 99 101 $section = array_pop( $section ); 100 102 101 get_template_part( 'template-parts/section' ); 103 if ( 'blocks' === $section_slug ) { 104 get_template_part( 'template-parts/section-blocks' ); 105 } else { 106 get_template_part( 'template-parts/section' ); 107 } 102 108 endforeach; 103 109 endif; // plugin_advanced.
Note: See TracChangeset
for help on using the changeset viewer.