Making WordPress.org

Changeset 8787


Ignore:
Timestamp:
05/13/2019 10:07:21 PM (7 years ago)
Author:
coffee2code
Message:

Markdown Importer: Don't delete the first line of content when looking to extract an excerpt.

See #4388.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-markdown/inc/class-importer.php

    r8786 r8787  
    433433                $markdown = trim( $markdown );
    434434
    435                 // Steal the first sentence as the excerpt
     435                // Use the first sentence as the excerpt.
    436436                $excerpt = '';
    437437                if ( preg_match( '/^(.+)/', $markdown, $matches ) ) {
    438438                        $excerpt = $matches[1];
    439                         $markdown = preg_replace( '/^(.+)/', '', $markdown );
    440439                }
    441440
Note: See TracChangeset for help on using the changeset viewer.