[wp-trac] [WordPress Trac] #52784: Granularize and catch error called on line 292 of wp-includes/class-wp-hook.php

WordPress Trac noreply at wordpress.org
Thu Mar 11 22:27:11 UTC 2021


#52784: Granularize and catch error called on line 292 of wp-includes/class-wp-
hook.php
-------------------------------------+-------------------------------
 Reporter:  Laughter On Water        |       Owner:  (none)
     Type:  enhancement              |      Status:  closed
 Priority:  normal                   |   Milestone:
Component:  General                  |     Version:  5.7
 Severity:  normal                   |  Resolution:  duplicate
 Keywords:  needs-design needs-docs  |     Focuses:  coding-standards
-------------------------------------+-------------------------------
Changes (by jrf):

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


Comment:

 Closing as duplicate of #51894 which was marked "wont-fix".

 Invalid function names being passed to hooks is a developer error.

 There are tools, like Xdebug, and plugins, like Debug bar actions and
 filters, available to help you trace back the source of the error.

 Slowing down one of the most used functions in Core to make allowances for
 something which is an undisputed developer error and should never make it
 into production, is not the way to go.

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


More information about the wp-trac mailing list