Opened 4 years ago

Closed 4 years ago

#10625 closed defect (bug) (fixed)

HTTP API wrongly uses has_action() before it's hooks

Reported by: Viper007Bond Owned by: dd32
Priority: lowest Milestone: 2.9
Component: HTTP Version: 2.9
Severity: trivial Keywords: has-patch
Cc:

Description

Before calling do_action(), the HTTP API first does a has_action() check. Besides being rather pointless (there's no performance improvement to speak of), it prevents the all action from running.

It should be removed.

Attachments (1)

10625.patch (1.7 KB) - added by Viper007Bond 4 years ago.

Download all attachments as: .zip

Change History (2)

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

(In [11835]) Don use has_action() before do_action() in http.php, props Viper007Bond, fixes #10625

Note: See TracTickets for help on using tickets.