[wp-trac] [WordPress Trac] #50961: Fix missing ref array in pre_get_users

WordPress Trac noreply at wordpress.org
Mon Aug 17 21:05:56 UTC 2020


#50961: Fix missing ref array in pre_get_users
----------------------------------------+------------------------------
 Reporter:  andy                        |       Owner:  adamsilverstein
     Type:  defect (bug)                |      Status:  closed
 Priority:  normal                      |   Milestone:  5.6
Component:  Users                       |     Version:  trunk
 Severity:  normal                      |  Resolution:  invalid
 Keywords:  needs-patch good-first-bug  |     Focuses:
----------------------------------------+------------------------------
Changes (by andy):

 * status:  assigned => closed
 * resolution:   => invalid


Comment:

 Hi Adam! Thanks for taking me back to school. :)

 I went back and revisited the reason for the patch. The issue was that I
 used `&$query` in the action function's signature and got a warning about
 getting a value when a reference was expected. In fact, the reference to
 the object was working. I just needed to remove the `&` to stop the
 warning.

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


More information about the wp-trac mailing list