[wp-trac] [WordPress Trac] #41095: wp_schedule_single_event should support any callable
    WordPress Trac 
    noreply at wordpress.org
       
    Mon Jun 19 01:18:26 UTC 2017
    
    
  
#41095: wp_schedule_single_event should support any callable
-----------------------------+-----------------------------
 Reporter:  dan.rossiter     |      Owner:
     Type:  feature request  |     Status:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  Customize        |    Version:
 Severity:  normal           |   Keywords:
  Focuses:                   |
-----------------------------+-----------------------------
 Hooking/filtering in WP core generally supports any callable variable, but
 wp_schedule_single_event only supports strings. I can see how instance
 methods wouldn't make sense here, but the static class methods in the
 array notation still make sense and should be supported.
 Since the minimum PHP version for WP is earlier than support for
 namespaces, static class methods are often used to keep methods from
 cluttering the global method space. Preventing this use case here seems
 arbitrary and seems like an easy fix.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41095>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
    
    
More information about the wp-trac
mailing list