Changeset 5244

Show
Ignore:
Timestamp:
04/11/07 22:47:36 (2 years ago)
Author:
rob1n
Message:

<!--more--> regex fixes. Props Nazgul. fixes #3698

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-includes/post-template.php

    r5242 r5244  
    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) ) 
  • trunk/wp-includes/post.php

    r5243 r5244  
    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 {