[wp-trac] [WordPress Trac] #47513: JavaScript TypeError when Video Playlists use native video elements

WordPress Trac noreply at wordpress.org
Mon Sep 5 06:41:07 UTC 2022


#47513: JavaScript TypeError when Video Playlists use native video elements
-------------------------------------------------+-------------------------
 Reporter:  afercia                              |       Owner:  afercia
     Type:  defect (bug)                         |      Status:  assigned
 Priority:  normal                               |   Milestone:  6.1
Component:  Media                                |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-screenshots has-patch needs-     |     Focuses:  javascript
  testing has-testing-info                       |
-------------------------------------------------+-------------------------

Comment (by aristath):

 The patch looks good to me, and simply adds an extra condition to ensure
 that `dimensions.resized` actually exists before we use it. It's defensive
 coding and that can only be a good thing in the context of WordPress.

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


More information about the wp-trac mailing list