[wp-trac] [WordPress Trac] #46791: esc_url() adding http:// to a relative URL to parent directory '../pathname/'
WordPress Trac
noreply at wordpress.org
Sun Feb 1 13:34:51 UTC 2026
#46791: esc_url() adding http:// to a relative URL to parent directory
'../pathname/'
-------------------------------------+------------------------------
Reporter: OrangePixelNath | Owner: (none)
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: Awaiting Review
Component: Formatting | Version: 5.1
Severity: normal | Resolution:
Keywords: has-patch needs-refresh | Focuses:
-------------------------------------+------------------------------
Changes (by r1k0):
* keywords: has-patch needs-testing => has-patch needs-refresh
Comment:
The patch doesn't apply cleanly; it fails with the error:
{{{
Running "patch:46791" (patch) task
? Please select a patch to apply 46791-2.diff​ (782 bytes) - adde
d by subrataemfluence 7 years ago.
patching file wp-includes/formatting.php
Hunk #1 FAILED at 4190.
1 out of 1 hunk FAILED -- saving rejects to file wp-
includes/formatting.php.rej
}}}
Patch needs a refresh and removing `needs-testing`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/46791#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list