Opened 5 years ago

Closed 5 years ago

#6769 closed defect (bug) (fixed)

loop_start hook isn't always called (workflow bug)

Reported by: Denis-de-Bernardy Owned by: 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 (1)

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

Download all attachments as: .zip

Change History (3)

comment:1   DD325 years ago

  • Keywords has-patch added
  • Milestone set to 2.6

DD325 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.