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

WordPress Trac noreply at wordpress.org
Tue Apr 28 10:08:04 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:  5.4
 Severity:  minor         |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 **Issue**
 Sentry has logged an issue here:
 https://sentry.io/share/issue/22e714bd19904fb29eb54fe8fb3c5f7b/

 `/wp/wp-includes/class-wp-query.php in WP_Query::get_posts at line 2203`

 {{{#!php
 <?php
 $q['author'] = addslashes_gpc( '' . urldecode( $q['author'] ) );
 }}}


 `Warning: urldecode() expects parameter 1 to be string, array given`

 This happens on a fresh installation of WordPress.

 **To replicate**
 1. Setup a fresh installation of WordPress (no plugins or anything extra)
 2. Visit the WP URL with the query `?author%5B%5D=%5BFiltered%5D3` to
 replicate the issue.

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


More information about the wp-trac mailing list