[wp-trac] [WordPress Trac] #36663: Wordpress 4.5 Query Strings Replacing "." with "_"

WordPress Trac noreply at wordpress.org
Tue Apr 26 09:06:09 UTC 2016


#36663: Wordpress 4.5 Query Strings Replacing "." with "_"
-------------------------------+------------------------------
 Reporter:  michael.bucklin    |       Owner:
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Administration     |     Version:  4.5
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:
-------------------------------+------------------------------
Changes (by swissspidy):

 * component:  Canonical => Administration


Comment:

 @michael.bucklin Ah, it happens in the admin, gotcha!

 Query args aren't modified in the front-end, but
 `wp_admin_canonical_url()` is run in the admin to remove query args like
 `?message` on page load.

 The culprit is this line in the function:

 {{{
 $current_url  = set_url_scheme( 'http://' . $_SERVER['HTTP_HOST'] .
 $_SERVER['REQUEST_URI'] );
 }}}

 Here, `$_SERVER['REQUEST_URI']` contains the wrong information. No idea
 where the query var gets modified though...

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


More information about the wp-trac mailing list