Check to see we have posts before calling the_post(). Fixes #13510 props dd32.

git-svn-id: https://develop.svn.wordpress.org/trunk@14829 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Peter Westwood
2010-05-24 08:33:51 +00:00
parent 41bc31f294
commit d83e614ab5

View File

@@ -25,7 +25,8 @@
* We reset this later so we can run the loop
* properly with a call to rewind_posts().
*/
the_post();
if ( have_posts() )
the_post();
?>
<h1 class="page-title">