Making WordPress.org


Ignore:
Timestamp:
01/30/2018 10:13:50 PM (7 years ago)
Author:
obenland
Message:

Plugins: Remove remaining read-more links.

Props SergeyBiryukov.
Fixes #3032.

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  
    1313use WordPressdotorg\Plugin_Directory\Template;
    1414
    15 global $section, $section_slug, $section_content, $section_read_more, $post;
     15global $section, $section_slug, $section_content, $post;
    1616
    1717$content   = Plugin_Directory::instance()->split_post_content_into_pages( get_the_content() );
     
    100100                $section = array_pop( $section );
    101101
    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 
    110102                get_template_part( 'template-parts/section' );
    111103            endforeach;
Note: See TracChangeset for help on using the changeset viewer.