[wp-trac] [WordPress Trac] #59126: first class callable syntax support in _wp_filter_build_unique_id() / remove_filter()

WordPress Trac noreply at wordpress.org
Thu Aug 17 18:30:51 UTC 2023


#59126: first class callable syntax support in _wp_filter_build_unique_id() /
remove_filter()
--------------------------+--------------------------------
 Reporter:  jave.web      |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:  6.3
 Severity:  normal        |  Resolution:
 Keywords:  php81         |     Focuses:  php-compatibility
--------------------------+--------------------------------

Comment (by jave.web):

 If you have a time to create a PR, go ahead! Even if it is not accepted,
 it can inspire the final developer :-) I think that the point from your
 ticket is implied by description in this one - and it's even worse -
 because `spl_object_hash` also says **"Once the object is destroyed, its
 hash may be reused for other objects."** Now this could potentially lead
 to ''**security issues where other filters could be removed than the ones
 intended.**''

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


More information about the wp-trac mailing list