From b5619ffd0ceffd454d40f48d84334a4de7159005 Mon Sep 17 00:00:00 2001 From: ryan Date: Wed, 19 May 2010 18:39:48 +0000 Subject: [PATCH] Fix pages setup in setup_postdata(). Props misterbisson. fixes #12651 git-svn-id: http://svn.automattic.com/wordpress/trunk@14750 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/query.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/query.php b/wp-includes/query.php index afa38f3af..5395f3b1b 100644 --- a/wp-includes/query.php +++ b/wp-includes/query.php @@ -2865,7 +2865,7 @@ function setup_postdata($post) { $pages = explode('', $content); $numpages = count($pages); } else { - $pages[0] = $post->post_content; + $pages = array( $post->post_content ); $multipage = 0; }