[wp-trac] [WordPress Trac] #54440: Make remove_filter param type more inclusive

WordPress Trac noreply at wordpress.org
Wed Dec 1 13:20:50 UTC 2021


#54440: Make remove_filter param type more inclusive
--------------------------+--------------------------
 Reporter:  malthert      |       Owner:  johnbillion
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  5.9
Component:  Plugins       |     Version:  2.2
 Severity:  normal        |  Resolution:  fixed
 Keywords:  has-patch     |     Focuses:  docs
--------------------------+--------------------------
Changes (by johnbillion):

 * status:  reviewing => closed
 * resolution:   => fixed


Comment:

 In [changeset:"52300" 52300]:
 {{{
 #!CommitTicketReference repository="" revision="52300"
 Plugins: Correct the documented allowable types for to the `$callback`
 parameter of various hook related functions.

 These functions don't require the callback to be a valid callable,
 therefore `array` and `string` are also valid types for this parameter.

 Props malthert

 Fixes #54440
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/54440#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list