From 8386c4a5c91ab61638bb9879b6805bd3788a4774 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Tue, 1 Aug 2006 13:53:04 +0000 Subject: [PATCH] There can be only one, or maybe more. Props Mark J. fixes #2991 git-svn-id: https://develop.svn.wordpress.org/trunk@4071 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/post-template.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wp-includes/post-template.php b/wp-includes/post-template.php index bdaec4c0cc..d199adf6db 100644 --- a/wp-includes/post-template.php +++ b/wp-includes/post-template.php @@ -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, '') && ((!$multipage) || ($page==1))) ) $stripteaser = 1;