[wp-trac] [WordPress Trac] #40951: New Text Widget - Switching Between Visual/Text Editor Strips Out Code

WordPress Trac noreply at wordpress.org
Wed Jun 14 09:31:59 UTC 2017


#40951: New Text Widget - Switching Between Visual/Text Editor Strips Out Code
--------------------------+-----------------------
 Reporter:  dwrippe       |       Owner:
     Type:  defect (bug)  |      Status:  reopened
 Priority:  normal        |   Milestone:  4.8.1
Component:  Widgets       |     Version:  4.8
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |     Focuses:
--------------------------+-----------------------

Comment (by gitlost):

 +1 to points 1 to 3 above.

 An alternative to the Classic Text Widget approach above is to disable the
 new functionality on the existing Text Widget by removing filters and
 javascript and overriding the widget registration, which seems to work
 fine - I've put this into a plugin which is available on
 [https://github.com/gitlost/ye-olde-text-widget], the zip can be
 downloaded [https://github.com/gitlost/ye-olde-text-
 widget/blob/master/dist/ye-olde-text-widget-1.0.0.zip?raw=true here].

 (I don't know what sort of stuff I've kludged into text widgets over the
 years so installing this gives me peace of mind on upgrading to 4.8.)

 Re point 4 I was following this development vaguely all along (the new
 widget is lovely) and still didn't click it could break my sites...

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


More information about the wp-trac mailing list