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

WordPress Trac noreply at wordpress.org
Wed Jul 5 16:19:17 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 ElectricFeet):

 Replying to [comment:108 azaozz]:
 > Related: #29171. Would appreciate some testing. Also, are there other
 tags that make sense to be used empty and are being stripped? I know `<i>`
 is not stripped any more (when it has attributes), are there others we
 need to add?

 I'm not sure if I'm answering the question you're asking, but I had
 problems with the following being deleted:

 {{{
 <div itemscope itemtype="http://schema.org/LocalBusiness">
 <p itemprop="address" itemscope
 itemtype="http://schema.org/PostalAddress"><span
 itemprop="streetAddress">blah blah</span>Etc Etc</p>
 <p>Tel:<span itemprop="telephone">12345678</span></p>
 </div>
 }}}
 which I reported here: https://wordpress.org/support/topic/4-8-bug-in-
 widgets-with-tinymce/.

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


More information about the wp-trac mailing list