[wp-trac] [WordPress Trac] #50022: Warning: urldecode() expects parameter 1 to be string, array given

WordPress Trac noreply at wordpress.org
Tue Apr 28 11:59:47 UTC 2020


#50022: Warning: urldecode() expects parameter 1 to be string, array given
--------------------------+------------------------------
 Reporter:  krypsin       |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Query         |     Version:
 Severity:  minor         |  Resolution:
 Keywords:  close         |     Focuses:
--------------------------+------------------------------
Changes (by knutsp):

 * keywords:   => close
 * version:  5.4 =>


Comment:

 Hello @krypsin, welcome to Trac and thanks for the ticket.

 The `author` parameter only takes an integer for author_id. For arrays use
 `author__in`.

 It seems to me the emitted warning is correct.

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


More information about the wp-trac mailing list