[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 07:14:32 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 bobbingwide):

 Replying to [comment:147 westonruter]:
 >
 > > And conversely, any reason why `$instance['filter'] = 'content'` is
 also permanent?
 >
 I think the code should determine the value for legacy during save and
 then make allowances for it when deciding what filters to apply when
 formatting. If 'legacy' has been set then don't apply wpautop.

 In this scenario, when displaying the form for the text widget, 'content'
 trumps 'legacy'.  BTW. I don't particularly care for the term 'legacy'.
 Why not try something like 'complex' or 'mixed'?

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


More information about the wp-trac mailing list