Changeset 6475 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/template-parts/plugin-single.php
- Timestamp:
- 01/30/2018 10:13:50 PM (7 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
r6469 r6475 13 13 use WordPressdotorg\Plugin_Directory\Template; 14 14 15 global $section, $section_slug, $section_content, $ section_read_more, $post;15 global $section, $section_slug, $section_content, $post; 16 16 17 17 $content = Plugin_Directory::instance()->split_post_content_into_pages( get_the_content() ); … … 100 100 $section = array_pop( $section ); 101 101 102 $section_no_read_mores = array( 'description', 'screenshots', 'installation', 'faq', 'reviews' );103 // If the FAQ section is the newer `<dl>` form, no need to do read-more for it.104 if ( false !== stripos( $section_content, '<dl>' ) ) {105 $section_no_read_mores[] = 'faq';106 }107 108 $section_read_more = ! in_array( $section_slug, $section_no_read_mores, true );109 110 102 get_template_part( 'template-parts/section' ); 111 103 endforeach;
Note: See TracChangeset
for help on using the changeset viewer.