WordPress.org

Make WordPress Core

Changeset 1519


Ignore:
Timestamp:
08/08/2004 08:22:29 PM (17 years ago)
Author:
rboren
Message:

Gracefully handle multiple <!--more> tags. From Scott Reilly (coffee2code). Bug 0000113.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/template-functions-post.php

    r1406 r1519  
    115115    }
    116116    $content = $pages[$page-1];
    117     $content = explode('<!--more-->', $content);
     117    $content = explode('<!--more-->', $content, 2);
    118118    if ((preg_match('/<!--noteaser-->/', $post->post_content) && ((!$multipage) || ($page==1))))
    119119        $stripteaser = 1;
Note: See TracChangeset for help on using the changeset viewer.