[wp-trac] [WordPress Trac] #53296: Do trim $hook_name within add_action() and add_filter() function

WordPress Trac noreply at wordpress.org
Sat May 29 14:24:40 UTC 2021


#53296: Do trim $hook_name within add_action() and add_filter() function
-------------------------+-----------------------------
 Reporter:  xmic         |      Owner:  (none)
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Security     |    Version:  trunk
 Severity:  normal       |   Keywords:  has-patch
  Focuses:               |
-------------------------+-----------------------------
 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.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/53296>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list