Make WordPress Core

Ticket #3698: 3698.diff

File 3698.diff, 1.1 KB (added by Nazgul, 19 years ago)
  • wp-includes/post-template.php

     
    8080                $page = count($pages); // give them the highest numbered page that DOES exist
    8181
    8282        $content = $pages[$page-1];
    83         if ( preg_match('/<!--more(.+?)?-->/', $content, $matches) ) {
     83        if ( preg_match('/<!--more(.*?)?-->/', $content, $matches) ) {
    8484                $content = explode($matches[0], $content, 2);
    8585                if ( !empty($matches[1]) && !empty($more_link_text) )
    8686                        $more_link_text = strip_tags(wp_kses_no_null(trim($matches[1])));
  • wp-includes/post.php

     
    7474// get extended entry info (<!--more-->)
    7575function get_extended($post) {
    7676        //Match the new style more links
    77         if ( preg_match('/<!--more(.*?)-->/', $post, $matches) ) {
     77        if ( preg_match('/<!--more(.*?)?-->/', $post, $matches) ) {
    7878                list($main, $extended) = explode($matches[0], $post, 2);
    7979        } else {
    8080                $main = $post;