Make WordPress Core

Opened 4 years ago

Closed 3 months ago

#53296 closed enhancement (wontfix)

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

Reported by: xmic's profile xmic Owned by:
Milestone: Priority: normal
Severity: normal Version: 5.8
Component: Plugins 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 4 years ago.
Add trim to add_filter() function param 1

Download all attachments as: .zip

Change History (2)

@xmic
4 years ago

Add trim to add_filter() function param 1

#1 @johnbillion
3 months ago

  • Component changed from Security to Plugins
  • Milestone Awaiting Review deleted
  • Resolution set to wontfix
  • Status changed from new to closed

Sorry that this got missed @xmic. I think this has minimal benefit and introduces extra cost, albeit a small one, so I will close this off as something that is not planned. Cheers!

Note: See TracTickets for help on using tickets.