[wp-trac] [WordPress Trac] #40951: New Text Widget - Switching Between Visual/Text Editor Strips Out Code
WordPress Trac
noreply at wordpress.org
Mon Jun 26 08:08:47 UTC 2017
#40951: New Text Widget - Switching Between Visual/Text Editor Strips Out Code
-------------------------------------------------+-------------------------
Reporter: dwrippe | Owner:
Type: defect (bug) | westonruter
Priority: normal | Status: accepted
Component: Widgets | Milestone: 4.8.1
Severity: major | Version: 4.8
Keywords: needs-testing has-unit-tests has- | Resolution:
patch | Focuses:
-------------------------------------------------+-------------------------
Comment (by WPwebbouw):
One issue may have been overlooked in this discussion. If the text widget
is being replaced by a new HTML widget, then also the filter
{{{
widget_text
}}}
will be renamed. This means that any code in a theme or widget that uses
this filter must be changed to use the new filter name. Which means this
solution would again require admins to manually check all sites where text
widgets have been applied to see if this filter has been used.
In my opinion the only sane decision to be made is to revert the new text
widget introduced in 4.8 back to the original text widget. Preferably in
the 4.8.1 update. After that, introduce whatever wysiwyg text widget you
want, but don't ever again do it in a way that destroys existing sites,
kills existing functionality and forces admins to fix a problen they
didn't create.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40951#comment:90>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list