WordPress.org

Make WordPress Core

Opened 5 years ago

Closed 5 years ago

#10625 closed defect (bug) (fixed)

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

Reported by: Viper007Bond Owned by: dd32
Milestone: 2.9 Priority: lowest
Severity: trivial Version: 2.9
Component: HTTP API Keywords: has-patch
Focuses: 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 5 years ago.

Download all attachments as: .zip

Change History (2)

Viper007Bond5 years ago

comment:1 azaozz5 years ago

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