WordPress.org

Make WordPress Core

Opened 5 months ago

#53296 new enhancement

Do trim $hook_name within add_action() and add_filter() function

Reported by: xmic Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 5.8
Component: Security Keywords: has-patch
Focuses: Cc:

Description

To reduce human error within inputting strings in add_action() thus add_filter() hook, a trim must be introduced.

Patch is available, please see attached file.

Attachments (1)

53296.patch (1.2 KB) - added by xmic 5 months ago.
Add trim to add_filter() function param 1

Download all attachments as: .zip

Change History (1)

@xmic
5 months ago

Add trim to add_filter() function param 1

Note: See TracTickets for help on using tickets.