There can be only one, or maybe more. Props Mark J. fixes #2991

git-svn-id: http://svn.automattic.com/wordpress/trunk@4071 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2006-08-01 13:53:04 +00:00
parent ca2dcf7d1d
commit 8fb3a20083
1 changed files with 2 additions and 0 deletions

View File

@ -81,6 +81,8 @@ function get_the_content($more_link_text = '(more...)', $stripteaser = 0, $more_
$content = explode($matches[0], $content, 2);
if ( !empty($matches[1]) )
$more_link_text = strip_tags(wp_kses_no_null(trim($matches[1])));
} else {
$content = array($content);
}
if ( (false !== strpos($post->post_content, '<!--noteaser-->') && ((!$multipage) || ($page==1))) )
$stripteaser = 1;