Files
wordpress/wp-includes
Peter Wilson 5b95f30633 Site Editor: Fix PHP warning in _wp_get_site_editor_redirection_url().
Fixes a PHP Warning for an undefined array key "QUERY_STRING" in `_wp_get_site_editor_redirection_url()` in some PHP configurations.

Depending on the configuration, `$_SERVER['QUERY_STRING']` can either be unset or an empty string when no query string included in the URL. This changes the condition from a falsey check to an `empty()` check.

Reviewed by Mamaduka.
Merges [60134] to the 6.8 branch.

Props akshaydhere, dilipbheda, johnbillion, rainynewt, sabernhardt, sainathpoojary, shovan_jaya, tusharaddweb, wildworks.
Fixes #63224.


Built from https://develop.svn.wordpress.org/branches/6.8@60135


git-svn-id: http://core.svn.wordpress.org/branches/6.8@59471 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-04-07 22:15:30 +00:00
..
2025-04-01 12:44:40 +00:00
2025-04-01 12:44:40 +00:00
2025-02-28 13:30:21 +00:00