[wp-trac] [WordPress Trac] #51894: PHP 8: Invalid functions added to hooks now cause fatals

WordPress Trac noreply at wordpress.org
Sun Nov 29 13:31:27 UTC 2020


#51894: PHP 8: Invalid functions added to hooks now cause fatals
-------------------------+---------------------
 Reporter:  dlh          |       Owner:  (none)
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  5.6
Component:  Plugins      |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  php8         |     Focuses:
-------------------------+---------------------

Comment (by Clorith):

 If they're throwing a TypeError, could we not wrap the calls within
 `do_action` and `apply_filters` in a try-catch segment, that way if it
 fails it could discard that attempt and also log a `__doing_it_wrong`?

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


More information about the wp-trac mailing list