[wp-trac] [WordPress Trac] #41231: media-views.js: Cannot read .length of undefined (this.controller.$uploaderToggler.length)
WordPress Trac
noreply at wordpress.org
Thu Jul 6 00:45:26 UTC 2017
#41231: media-views.js: Cannot read .length of undefined
(this.controller.$uploaderToggler.length)
-------------------------------------+-------------------------------------
Reporter: Blackbam | Owner: joemcgill
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 4.8.1
Component: Media | Version: 4.8
Severity: major | Resolution: fixed
Keywords: good-first-bug has- | Focuses: accessibility,
patch | javascript, administration
-------------------------------------+-------------------------------------
Comment (by joemcgill):
In [changeset:"41010"]:
{{{
#!CommitTicketReference repository="" revision="41010"
Sanity check $uploaderToggler in wp.media.view.UploaderInline.
This ensures `$uploaderToggler` exists before checking length so any views
extending or scripts accessing this view, won't encounter errors that stop
execution.
See #41231.
Merges [41009] to the 4.8 branch.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41231#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list