Make WordPress Core

Opened 5 years ago

Closed 22 months ago

#53296 closed enhancement (wontfix)

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

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

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 years ago.
Add trim to add_filter() function param 1

Download all attachments as: .zip

Change History (2)

@xmic
5 years ago

Add trim to add_filter() function param 1

#1 @johnbillion
22 months ago

  • Component SecurityPlugins
  • Milestone Awaiting Review
  • Resolutionwontfix
  • Status newclosed

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.