[wp-trac] [WordPress Trac] #40951: New Text Widget - Switching Between Visual/Text Editor Strips Out Code
WordPress Trac
noreply at wordpress.org
Mon Aug 14 05:58:26 UTC 2017
#40951: New Text Widget - Switching Between Visual/Text Editor Strips Out Code
-------------------------------------------------+-------------------------
Reporter: dwrippe | Owner:
Type: defect (bug) | westonruter
Priority: normal | Status: closed
Component: Widgets | Milestone: 4.8.1
Severity: major | Version: 4.8
Keywords: needs-testing has-unit-tests has- | Resolution: fixed
patch commit fixed-major needs-dev-note | Focuses:
-------------------------------------------------+-------------------------
Comment (by westonruter):
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/40951#comment:174>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list