Opened 15 years ago
Closed 15 years ago
#18794 closed defect (bug) (fixed)
Twentyeleven templates do not properly call the loop
| Reported by: | jfarthing84 | Owned by: | westi |
|---|---|---|---|
| Priority: | high | Milestone: | 3.3 |
| Component: | Bundled Theme | Version: | 3.2.1 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
Description
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.
Attachments (1)
Change History (8)
#2
@
15 years ago
- Cc added
- Keywords has-patch added
I uploaded 18794.diff which seems to fix this issue in all templates with partial loops. Please let me know if I missed anything.
#5
@
15 years ago
- Keywords dev-feedback removed
- Milestone Awaiting Review → 3.3
- Priority normal → high
Note:
See TracTickets
for help on using tickets.
Some templates do indeed have this problem.
This is something we fixed with Twenty Ten, so it's rather annoying it got through again.
image.php, page.php, showcase.php, and sidebar-page.php are all affected. single.php is not, in particular.
Previously: #13279.