[wp-trac] [WordPress Trac] #47465: current_action function - return types

WordPress Trac noreply at wordpress.org
Thu Jun 6 09:18:44 UTC 2019


#47465: current_action function - return types
-------------------------------------------+------------------------------
 Reporter:  madeinua                       |       Owner:  (none)
     Type:  defect (bug)                   |      Status:  new
 Priority:  normal                         |   Milestone:  Awaiting Review
Component:  Administration                 |     Version:  trunk
 Severity:  minor                          |  Resolution:
 Keywords:  reporter-feedback needs-patch  |     Focuses:
-------------------------------------------+------------------------------

Comment (by madeinua):

 Hello @SergeyBiryukov,

 I agree there is no real example on a clean installation. But in this case
 you have to change the PHP Doc header (to add an array as a valid return
 type) because this can confuse the developers which will use this function
 in their plugins.

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


More information about the wp-trac mailing list