[wp-trac] [WordPress Trac] #43455: apply_filters not passing by ref

WordPress Trac noreply at wordpress.org
Fri Dec 18 18:31:54 UTC 2020


#43455: apply_filters not passing by ref
-------------------------------+----------------------
 Reporter:  lordspace          |       Owner:  (none)
     Type:  defect (bug)       |      Status:  closed
 Priority:  normal             |   Milestone:
Component:  Plugins            |     Version:  4.8
 Severity:  normal             |  Resolution:  invalid
 Keywords:  reporter-feedback  |     Focuses:
-------------------------------+----------------------
Changes (by hellofromTonya):

 * status:  new => closed
 * resolution:   => invalid
 * milestone:  Awaiting Review =>


Comment:

 Hello @lordspace,

 Did applying @ ocean90's example resolve the reported problem?

 >No, make sure to pass an array as the second argument to
 apply_filters_ref_array(). Simplified example: https://3v4l.org/TKgIf

 I'm closing this ticket as his example should resolve the issue. However,
 if it did not, please feel free to reopen. Cheers.

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


More information about the wp-trac mailing list