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

git-svn-id: https://develop.svn.wordpress.org/trunk@1519 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2004-08-08 20:22:29 +00:00
parent 3c161591e7
commit 9f2cd5bc27
1 changed files with 1 additions and 1 deletions

View File

@ -114,7 +114,7 @@ function get_the_content($more_link_text = '(more...)', $stripteaser = 0, $more_
$file = $pagenow; //$_SERVER['PHP_SELF'];
}
$content = $pages[$page-1];
$content = explode('<!--more-->', $content);
$content = explode('<!--more-->', $content, 2);
if ((preg_match('/<!--noteaser-->/', $post->post_content) && ((!$multipage) || ($page==1))))
$stripteaser = 1;
$teaser = $content[0];