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

WordPress Trac noreply at wordpress.org
Mon Apr 1 17:44:05 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 iandunn):

 The comments on [https://make.wordpress.org/core/2019/03/26/coding-
 standards-updates-for-php-5-6/ the recent coding standards proposal] also
 have some discussion about this ticket.

 In particular, the thread starting in
 php-5-6/#comment-35602 comment-35602]. I don't have time to dig into this
 closely, but at first glance it seems like generating a hash for a closure
 will be unreliable, since the signatures aren't unique, and change often
 in practice. Technically function names can change too, but in practice
 that's much less common.

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

More information about the wp-trac mailing list