[wp-trac] [WordPress Trac] #43455: apply_filters not passing by ref
WordPress Trac
noreply at wordpress.org
Fri Mar 2 10:44:04 UTC 2018
#43455: apply_filters not passing by ref
-------------------------------+------------------------------
Reporter: lordspace | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Plugins | Version: 4.8
Severity: normal | Resolution:
Keywords: reporter-feedback | Focuses:
-------------------------------+------------------------------
Changes (by ocean90):
* keywords: => reporter-feedback
Comment:
It should work if you use `apply_filters_ref_array()`:
`$arr = apply_filters_ref_array( 'test', [ $arr, &$arr2, $obj ] );`
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43455#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list