[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
Mon Aug 14 05:58:25 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  |     Focuses:
------------------------------+--------------------------
Changes (by westonruter):

 * status:  accepted => closed
 * resolution:   => fixed


Comment:

 In [changeset:"41251"]:
 {{{
 #!CommitTicketReference repository="" revision="41251"
 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.

 Amends [41050].
 See #40951.
 Fixes #41622.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/41622#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list