[wp-trac] [WordPress Trac] #46635: Improve identifying of non–trivial callbacks in hooks

WordPress Trac noreply at wordpress.org
Mon Apr 1 17:56:16 UTC 2019


#46635: Improve identifying of non–trivial callbacks in hooks
-------------------------+-------------------------------
 Reporter:  Rarst        |       Owner:  (none)
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  General      |     Version:
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:  coding-standards
-------------------------+-------------------------------

Comment (by Rarst):

 I thought some more about identifying closures. In one of my plugins I
 display their definition point (source path, line) for informational
 purposes.

 So if identifying closure by signature alone is concern we could also try
 something path based, e.g. `PluginFile.php/function()`

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


More information about the wp-trac mailing list