WordPress.org

Make WordPress Core

Changeset 5244


Ignore:
Timestamp:
04/11/2007 10:47:36 PM (13 years ago)
Author:
rob1n
Message:

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

Location:
trunk/wp-includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • 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 {
Note: See TracChangeset for help on using the changeset viewer.