[wp-trac] [WordPress Trac] #63224: Undefined array key "QUERY_STRING" in _wp_get_site_editor_redirection_url()

WordPress Trac noreply at wordpress.org
Sun Apr 6 23:51:16 UTC 2025


#63224: Undefined array key "QUERY_STRING" in _wp_get_site_editor_redirection_url()
-------------------------------------------------+-------------------------
 Reporter:  akshaydhere                          |       Owner:
                                                 |  peterwilsoncc
     Type:  defect (bug)                         |      Status:  assigned
 Priority:  normal                               |   Milestone:  6.8
Component:  Editor                               |     Version:  trunk
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch needs-testing needs-       |     Focuses:
  testing-info commit                            |
-------------------------------------------------+-------------------------
Changes (by peterwilsoncc):

 * keywords:  has-patch needs-testing needs-testing-info => has-patch needs-
     testing needs-testing-info commit
 * owner:  (none) => peterwilsoncc
 * status:  reopened => assigned


Comment:

 I've been able to reproduce this using Studio

 I believe that it comes down to PHP configurations,
 `$_SERVER['QUERY_STRING']` can either be an empty string or unset when the
 URL doesn't contain one.

 == Test Report
 === Description
 This report validates whether the indicated patch works as expected.

 Patch tested: [attachment:"63224.patch"]

 === Environment
 - WordPress: 6.9-alpha-60132
 - PHP: 8.2.10-dev
 - Server: PHP.wasm
 - Database: WP_SQLite_Translator (Server: 5.5 / Client: 3.40.1)
 - Browser: Firefox 137.0
 - OS: macOS
 - Theme: Twenty Twenty-Five 1.1
 - MU Plugins: None activated
 - Plugins:
   * Test Reports 1.2.0

 === Actual Results
 1.  ✅ Issue resolved with patch.

 === Additional Notes
 I've tested various redirects continue to work as expected. They do.

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


More information about the wp-trac mailing list