[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 17:23:21 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):

 We use schema.org structured data on many customer websites in a text
 widget which is completely stripped by current 4.8 behaviour, so we can
 not update for now. Example:

 {{{
 <p itemscope itemtype="http://schema.org/Organization"><strong
 itemprop="name">ACME</strong><br /><span itemprop="address" itemscope
 itemtype="http://schema.org/PostalAddress"><span
 itemprop="streetAddress">Hollywood Boulevard</span><br /><span
 itemprop="postalCode">12345</span> <span itemprop="addressLocality">Sin
 City</span><br /></span>Tel.: <span itemprop="telephone"
 content="+15552345567">555-2345567</span><br /><a itemprop="email"
 content="info at example.com"
 href="mailto:info at example.com?subject=FUUUU">info at example.com</a><meta
 itemprop="url" content="http://www.example.com/" /></p>
 }}}
 Please make sure these schema.org attributes and also <meta> tags are not
 stripped in future version, thanks for considering.

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


More information about the wp-trac mailing list