From 8203d221752dfb5548ad4c93db416703cbb2a56f Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Wed, 19 May 2010 18:39:48 +0000 Subject: [PATCH] Fix pages setup in setup_postdata(). Props misterbisson. fixes #12651 git-svn-id: https://develop.svn.wordpress.org/trunk@14750 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 afa38f3af4..5395f3b1b2 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; }