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

WordPress Trac noreply at wordpress.org
Thu Jul 13 18:25:56 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 Ov3rfly):

 @westonruter On customer website after update to 4.8 the pre-existing
 above quoted code was stripped completely without notice as soon as
 customer wanted to change a phone number there. Another widget with an
 <img> tag and some text suddenly had added <p> tags, which broke the
 layout. We stopped updating our sites to 4.8 immediately after this, even
 rolled back some.

 Many of our customers use text widgets with all kind of html content.

 '''Manually copying''' these "since ever existing" widgets to a new
 "Custom HTML" widget '''is not an option''' for us.

 Many widgets also have complex "Widget Logic" settings, would be a
 additional nightmare (=impossible) to copy these to the correct new
 widgets.

 Regarding your sceenshot:

 What should a regular customer (not wp expert) do, if he reads this
 "Custom HTML" widget message? He/she is happy to find that place where to
 change the phone number or edit the latest special offer text. He/she does
 not want be bothered with any technical notes.

 Can the note be dismissed per user? Is there an action to notify wp admin
 if this message appears or a filter to stop this message from appearing at
 all and keeping all text widgets as before?

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


More information about the wp-trac mailing list