[wp-trac] [WordPress Trac] #46033: Please fix redirect in wp-login.php

WordPress Trac noreply at wordpress.org
Fri Jan 18 10:45:43 UTC 2019

#46033: Please fix redirect in wp-login.php
 Reporter:  tinodjwp      |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  5.0.3
 Severity:  normal        |   Keywords:  has-patch
  Focuses:                |
 On line 619 in wp-login.php there is a redirect that does not take in
 account site_url setting which is braking experience in some cases.
 Therefore, the suggested fix is replace

 wp_safe_redirect(remove_query_arg( array( 'key', 'login' ))  );


 wp_safe_redirect( site_url(remove_query_arg( array( 'key', 'login' )) ) );


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

More information about the wp-trac mailing list