[wp-trac] [WordPress Trac] #38116: Introduce is_callable check into apply_filters function to avoid failure of call_user_func_array causing all filters to fail.

WordPress Trac noreply at wordpress.org
Thu Jan 11 18:41:23 UTC 2024


#38116: Introduce is_callable check into apply_filters function to avoid failure of
call_user_func_array causing all filters to fail.
-----------------------------+----------------------
 Reporter:  garrett-eclipse  |       Owner:  (none)
     Type:  enhancement      |      Status:  closed
 Priority:  normal           |   Milestone:
Component:  Plugins          |     Version:
 Severity:  normal           |  Resolution:  wontfix
 Keywords:  has-patch        |     Focuses:
-----------------------------+----------------------
Changes (by johnbillion):

 * status:  new => closed
 * resolution:   => wontfix
 * milestone:  Awaiting Review =>


Comment:

 I'm going to make an executive decision and close this for the same reason
 as #51894. An invalid callback is a clear developer error and should not
 be ignored. The fact that what used to be a PHP warning is now a fatal
 error is unfortunate but valid, and it does make it much more visible that
 a problem has occurred.

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


More information about the wp-trac mailing list