Make WordPress Core

Opened 16 years ago

Closed 16 years ago

#6769 closed defect (bug) (fixed)

loop_start hook isn't always called (workflow bug)

Reported by: denis-de-bernardy's profile Denis-de-Bernardy Owned by:
Milestone: 2.6 Priority: normal
Severity: normal Version: 2.5
Component: General Keywords: has-patch
Focuses: Cc:

Description

while investigating a weird bug in a plugin, I noticed that, if you do a search that returns no results, the loop_start hook never gets called -- but the loop_end hook does.

imo, loop_end should not get called if loop_start wasn't.

Attachments (1)

6769.diff (547 bytes) - added by DD32 16 years ago.

Download all attachments as: .zip

Change History (3)

#1 @DD32
16 years ago

  • Keywords has-patch added
  • Milestone set to 2.6

@DD32
16 years ago

#2 @markjaquith
16 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [8188]) Don't call loop_end hook if we don't have any posts. props Denis-de-Bernardy and DD32. fixes #6769 for trunk

Note: See TracTickets for help on using tickets.