[wp-trac] [WordPress Trac] #49709: Call to undefined function esc_url() in wp-includes/class-wp-fatal-error-handler.php:190
WordPress Trac
noreply at wordpress.org
Fri Mar 27 11:16:10 UTC 2020
#49709: Call to undefined function esc_url() in wp-includes/class-wp-fatal-error-
handler.php:190
--------------------------+------------------------------
Reporter: rob006 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Site Health | Version: 5.3.2
Severity: normal | Resolution:
Keywords: needs-patch | Focuses:
--------------------------+------------------------------
Comment (by rob006):
I attached two possible patches. First uses `htmlspecialchars()` for
encoding URL, second skips encoding entirely (it is already done in that
way in `_doing_it_wrong()`:
[https://github.com/WordPress/WordPress/blob/f4f1184debce6829fde01010c0df90c33f9163f8
/wp-includes/functions.php#L5167 1]
[https://github.com/WordPress/WordPress/blob/f4f1184debce6829fde01010c0df90c33f9163f8
/wp-includes/functions.php#L5189 2]).
--
Ticket URL: <https://core.trac.wordpress.org/ticket/49709#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list