[wp-trac] [WordPress Trac] #39125: Customize: Video Header YouTube field has issues when whitespace is inserted at beginning or end of URL

WordPress Trac noreply at wordpress.org
Tue Dec 6 22:24:18 UTC 2016


#39125: Customize: Video Header YouTube field has issues when whitespace is
inserted at beginning or end of URL
---------------------------+-----------------------------
 Reporter:  davidakennedy  |      Owner:
     Type:  defect (bug)   |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  Customize      |    Version:
 Severity:  normal         |   Keywords:
  Focuses:                 |
---------------------------+-----------------------------
 If the YouTube text field for video headers has white space at the
 beginning or end of the string, it causes issues. To reproduce:

 1. Go to Header Media in the Customizer with Twenty Seventeen activated.
 2. Insert a YouTube URL, with a space at the '''beginning''' of the
 string.
 3. In the preview, a refresh happens, but the video isn't there. No errors
 are output as to why that might be.
 4. Save & Publish.
 5. On the front end, nothing is output.

 The reverse:

 1. Go to Header Media in the Customizer with Twenty Seventeen activated.
 2. Insert a YouTube URL, with a space at the '''end''' of the string.
 3. In the preview, a refresh happens, and a YouTube iframe is there, but
 the video errors out.
 4. Save & Publish.
 5. On the front end, a YouTube iframe is there, but the video errors out.

 We should handle errors better in the Customizer for this type of thing,
 and potentially trim whitespace if it's not too aggressive.

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


More information about the wp-trac mailing list