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

git-svn-id: http://svn.automattic.com/wordpress/trunk@1519 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
rboren 2004-08-08 20:22:29 +00:00
parent d514190d2d
commit bcf41e4fc9
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];