[wp-trac] [WordPress Trac] #50095: WP_List_Util::filter() not compatible with lists of objects that use magic methods

WordPress Trac noreply at wordpress.org
Fri Jul 10 00:30:04 UTC 2020


#50095: WP_List_Util::filter() not compatible with lists of objects that use magic
methods
-----------------------------+------------------------
 Reporter:  johnjamesjacoby  |       Owner:  whyisjake
     Type:  defect (bug)     |      Status:  closed
 Priority:  normal           |   Milestone:  5.5
Component:  Formatting       |     Version:  4.7
 Severity:  normal           |  Resolution:  fixed
 Keywords:  has-patch        |     Focuses:
-----------------------------+------------------------
Changes (by whyisjake):

 * owner:  (none) => whyisjake
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"48413" 48413]:
 {{{
 #!CommitTicketReference repository="" revision="48413"
 Formatting: Ensure that wp_filter_object_list() will return an array when
 being passed an object with magic methods.

 Fixes #50095.

 Props johnjamesjacoby.
 }}}

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


More information about the wp-trac mailing list