[wp-trac] [WordPress Trac] #53778: Widgets changing Custom HTML

WordPress Trac noreply at wordpress.org
Mon Jul 26 07:53:55 UTC 2021


#53778: Widgets changing Custom HTML
--------------------------+-----------------------------
 Reporter:  jim5471       |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Widgets       |    Version:
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 WP5.8
 PHP8.0.8
 Twenty Twenty-One Theme
 no plugins active


 1. Go to dashboard/appearance/Widgets
 2. Insert a Custom HTML Block into the footer and insert this code

 {{{
 <div><p>some text</p>
 <a href="http://www.test.com">link text</a>
 </div>
 <svg height="90" width="200">
   <text x="10" y="20" style="fill:red;">Several lines:
     <tspan x="10" y="45">First line.</tspan>
     <tspan x="10" y="70">Second line.</tspan>
   </text>
 </svg>
 }}}
 2. Update and check it appears on the webpage and is correct
 3. Go back to dashboard and then back to dashboard/appearance/Widgets
 4. Observe the Custom html code has changed

 {{{
 <div>
 <p>some text</p>
 <p><a href="http://www.test.com">link text</a>
 </p></div>
 <p><svg height="90" width="200"><br></br>
   <text x="10" y="20" style="fill:red;">Several lines:<br></br>
     <tspan x="10" y="45">First line.</tspan><br></br>
     <tspan x="10" y="70">Second line.</tspan><br></br>
   </text><br></br>
 </svg></p>
 }}}
 5. Change another widget and update
 6. Go back to dashboard and then back to dashboard/appearance/Widgets
 7. Observe that the Custom html code has changed again
 {{{
 <div>
 <p>some text</p>
 <p><a href="http://www.test.com">link text</a>
 </p>
 </div>
 <p><svg height="90" width="200"><br></br></svg><br><br>
   <text x="10" y="20" style="fill:red;">Several lines:<br><br><br>
     <tspan x="10" y="45">First line.</tspan><br><br><br>
     <tspan x="10" y="70">Second line.</tspan><br><br><br>
   </text><br><br><br>
 </p>
 }}}
 Didn't this used to be a problem that was fixed ?

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/53778>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list