[wp-trac] [WordPress Trac] #45374: apply_filters_ref_array() no longer passes arguments by reference

WordPress Trac noreply at wordpress.org
Thu Dec 6 15:45:02 UTC 2018


#45374: apply_filters_ref_array() no longer passes arguments by reference
------------------------------------------+------------------------------
 Reporter:  johnbillion                   |       Owner:  (none)
     Type:  defect (bug)                  |      Status:  new
 Priority:  normal                        |   Milestone:  Awaiting Review
Component:  Plugins                       |     Version:  4.7
 Severity:  normal                        |  Resolution:
 Keywords:  needs-patch needs-unit-tests  |     Focuses:
------------------------------------------+------------------------------

Comment (by henry.wright):

 @websupporter

 I've noticed an issue with references and `call_user_func_array()`.

 **Example 1**
 This uses `call_user_func_array()` to pass by reference:
 https://3v4l.org/JDcqk

 **Example 2**
 This uses a function call to pass by reference: https://3v4l.org/sQFsU

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


More information about the wp-trac mailing list