From 1eba7bb0f30a079d68a0c91aecf2d4a100e14f4e Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Tue, 1 Aug 2006 04:54:23 +0000 Subject: [PATCH] (More more more) how do you like it, how do you like it. fixes #2991 git-svn-id: https://develop.svn.wordpress.org/trunk@4070 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/post-template.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/wp-includes/post-template.php b/wp-includes/post-template.php index fcd3f8995b..bdaec4c0cc 100644 --- a/wp-includes/post-template.php +++ b/wp-includes/post-template.php @@ -77,7 +77,11 @@ function get_the_content($more_link_text = '(more...)', $stripteaser = 0, $more_ $file = $pagenow; //$_SERVER['PHP_SELF']; $content = $pages[$page-1]; - $content = explode('', $content, 2); + if ( preg_match('//', $content, $matches) ) { + $content = explode($matches[0], $content, 2); + if ( !empty($matches[1]) ) + $more_link_text = strip_tags(wp_kses_no_null(trim($matches[1]))); + } if ( (false !== strpos($post->post_content, '') && ((!$multipage) || ($page==1))) ) $stripteaser = 1; $teaser = $content[0];