[wp-trac] [WordPress Trac] #62355: WP sets REQUEST_URI to an invalid value if it's not set
WordPress Trac
noreply at wordpress.org
Thu Dec 19 12:41:18 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 kkmuffme):
>It's funny you mention 15 years, since this was initially done almost
exactly 15 years ago
Can you explain me how that's relevant?
>According to the commit message, the intention was to eliminate the need
for isset() checks.
>It could be argued that it is better to simply use isset() checks, but it
has been like this for so long now that changing it would likely cause
issues for existing plugins.
Did you read the original ticket or look at the PR? Bc it seems you didn't
understand any of it.
It's not about removing the declaration, it's changing it to '/' from ''.
This has no implications or changes to if or when isset() is needed.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62355#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list