[wp-trac] [WordPress Trac] #40951: New Text Widget - Switching Between Visual/Text Editor Strips Out Code
WordPress Trac
noreply at wordpress.org
Tue Jul 18 22:10:45 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:"41086"]:
{{{
#!CommitTicketReference repository="" revision="41086"
Widgets: Replace adding `balanceTags` on `widget_custom_html_content`
filter in favor of just applying `widget_text` filters in the Custom HTML
widget.
Ensures that users who copy HTML from the Text widget in legacy mode over
to the Custom HTML widget will continue to get all of the same filters
applied, including tag balancing and shortcodes, if a plugin added
support. Plugins still have the `widget_text_content` and
`widget_custom_html_content` filters they can use to target the specific
widget types.
Amends [40893].
See #40951.
Fixes #40907 for trunk.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40951#comment:163>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list