[wp-trac] [WordPress Trac] #41622: Text widget can show DOMDocument::loadHTML() warnings in admin when is_legacy_widget method is called
WordPress Trac
noreply at wordpress.org
Tue Sep 19 07:38:23 UTC 2017
#41622: Text widget can show DOMDocument::loadHTML() warnings in admin when
is_legacy_widget method is called
------------------------------------------+--------------------------
Reporter: codezen8 | Owner: westonruter
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 4.8.2
Component: Widgets | Version: 4.8.1
Severity: normal | Resolution: fixed
Keywords: has-patch commit fixed-major | Focuses:
------------------------------------------+--------------------------
Changes (by ocean90):
* status: reopened => closed
* resolution: => fixed
Comment:
In [changeset:"41391"]:
{{{
#!CommitTicketReference repository="" revision="41391"
Widgets: Suppress PHP warnings raised by `DOMDocument::loadHTML()` in
`WP_Widget_Text::is_legacy_instance()` which could appear in Text widget
forms.
Also explicitly use HTML5 doctype when parsing Text widget contents in
legacy mode detection.
Merge of [41251] to the 4.8 branch.
Amends [41050].
See #40951.
Fixes #41622.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41622#comment:13>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list