[wp-trac] [WordPress Trac] #18794: Twentyeleven templates do not properly call the loop

WordPress Trac wp-trac at lists.automattic.com
Tue Sep 27 18:52:46 UTC 2011


#18794: Twentyeleven  templates do not properly call the loop
--------------------------+-----------------------------
 Reporter:  jfarthing84   |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Themes        |    Version:  3.2.1
 Severity:  normal        |   Keywords:  dev-feedback
--------------------------+-----------------------------
 Is there any particular reason that twentyeleven does not use a proper
 loop? Many (if not all) of the templates use
 {{{
 the_post()
 }}}
 rather than
 {{{
 if ( have_posts() ) : the_post();
 }}}
 thus defining `$wp_query->in_the_loop` as always true.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/18794>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list