[wp-trac] [WordPress Trac] #40771: Unable to add YouTube video to Video Widget

WordPress Trac noreply at wordpress.org
Tue May 16 20:32:57 UTC 2017


#40771: Unable to add YouTube video to Video Widget
--------------------------+--------------------------
 Reporter:  taijacg       |       Owner:  westonruter
     Type:  defect (bug)  |      Status:  reopened
 Priority:  normal        |   Milestone:  4.8
Component:  Widgets       |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+--------------------------

Comment (by westonruter):

 @timmydcrawford I found a problem when the URL field has whitespace at the
 beginning: the oEmbed preview doesn't show up. What if we trimmed the
 whitespace out of the underlying `url` in the model? Like in
 [attachment:40771.4.diff]? This implementation is not ideal because the
 non-trimmed value still appears in the field and momentarily populates the
 model. It would be better if we could just strip whitespace on `input`,
 preventing whitespace from the field altogether.

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


More information about the wp-trac mailing list