mirror of
https://github.com/WordPress/WordPress.git
synced 2024-10-02 17:47:50 +02:00
Check to see we have posts before calling the_post(). Fixes #13510 props dd32.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14829 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
86bc8063c6
commit
437a09348b
@ -25,7 +25,8 @@
|
|||||||
* We reset this later so we can run the loop
|
* We reset this later so we can run the loop
|
||||||
* properly with a call to rewind_posts().
|
* properly with a call to rewind_posts().
|
||||||
*/
|
*/
|
||||||
the_post();
|
if ( have_posts() )
|
||||||
|
the_post();
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<h1 class="page-title">
|
<h1 class="page-title">
|
||||||
|
Loading…
Reference in New Issue
Block a user