[wp-trac] [WordPress Trac] #58803: Infinite loop in canonical.php
WordPress Trac
noreply at wordpress.org
Wed Aug 30 17:42:08 UTC 2023
#58803: Infinite loop in canonical.php
--------------------------+------------------------------
Reporter: emerlen | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Canonical | Version: 6.2
Severity: minor | Resolution:
Keywords: | Focuses:
--------------------------+------------------------------
Comment (by emmaevy):
$chained_redirect = redirect_canonical($redirect_url, false);
if (!$chained_redirect)
It help prevent the infinite loop by ensuring that the same result of
redirect_canonical() is consistently used within the if block. This
approach might mitigate the recursive redirection issue and the resulting
infinite loop.
Steps: You can manually check on browser developer tools to inspect
network requests and redirects or use this tool
Link:[https://redirectchecker.com/ redirect checker] This can help you
identify the loop and detail redirection chain and its http status code.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/58803#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list