[wp-trac] [WordPress Trac] #35363: Bug js when replacing a audio or video in post editor
WordPress Trac
noreply at wordpress.org
Fri Jan 8 08:26:34 UTC 2016
#35363: Bug js when replacing a audio or video in post editor
--------------------------+-----------------------------
Reporter: truonght | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Editor | Version:
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
When I replace a audio or video in editor, browser console show an error:
Uncaught TypeError: Cannot read property 'indexOf' of undefined
In file wp-includes/js/media-audiovideo.js?ver=4.4.1, line 801:
{{{
if ( this.model.get( 'src' ).indexOf( 'vimeo' ) > -1 && ! ( 'Froogaloop'
in window ) )
}}}
I think we should check this.model.get( 'src' ) !== undefined
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35363>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list