[wp-trac] [WordPress Trac] #42695: Text Widget: hard-coded width/height attributes are stripped from iframes

WordPress Trac noreply at wordpress.org
Mon Jan 15 18:28:08 UTC 2018


#42695: Text Widget: hard-coded width/height attributes are stripped from iframes
-------------------------------+--------------------
 Reporter:  dubaicarmelschool  |       Owner:
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  4.9.2
Component:  Widgets            |     Version:  4.9
 Severity:  normal             |  Resolution:
 Keywords:  needs-patch        |     Focuses:
-------------------------------+--------------------

Comment (by westonruter):

 I think what should be done is the following: any heights or widths in the
 original text should get replaced with placeholders before running the
 embed logic. Then after embedding logic is done, and the dimensions are
 stripped out, the placeholders can be swapped back with their original
 values. This will ensure any user-supplied dimensions are kept intact.

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


More information about the wp-trac mailing list