Ticket #6769 (closed defect: fixed)

Opened 7 months ago

Last modified 5 months ago

loop_start hook isn't always called (workflow bug)

Reported by: Denis-de-Bernardy Assigned to: anonymous
Priority: normal Milestone: 2.6
Component: General Version: 2.5
Severity: normal Keywords: has-patch
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

6769.diff (0.5 kB) - added by DD32 on 06/24/08 05:17:48.

Change History

06/24/08 05:17:37 changed by DD32

  • keywords set to has-patch.
  • milestone set to 2.6.

06/24/08 05:17:48 changed by DD32

  • attachment 6769.diff added.

06/24/08 19:58:54 changed by markjaquith

  • status changed from new to closed.
  • resolution set to fixed.

(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