mirror of
git://develop.git.wordpress.org/
synced 2025-01-18 21:28:02 +01:00
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:
parent
3c161591e7
commit
9f2cd5bc27
@ -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];
|
||||
|
Loading…
x
Reference in New Issue
Block a user