[wp-trac] [WordPress Trac] #62355: WP sets REQUEST_URI to an invalid value if it's not set
WordPress Trac
noreply at wordpress.org
Sun Dec 29 22:59:48 UTC 2024
#62355: WP sets REQUEST_URI to an invalid value if it's not set
--------------------------+------------------------------
Reporter: kkmuffme | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
--------------------------+------------------------------
Comment (by siliconforks):
As an example, there are hundreds of plugins in the plugin directory that
check whether `empty( $_SERVER['REQUEST_URI'] )` is true.
https://wpdirectory.net/search/01JGA9WXAH1KY0230NBT8N5HV2
I'm not sure exactly what all of these plugins are doing, but they could
potentially behave differently when running under WP-CLI if the default
value were changed to `'/'`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62355#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list