[wp-trac] [WordPress Trac] #35181: Using Lodash makes media_upload dialog unable to use
WordPress Trac
noreply at wordpress.org
Mon Dec 21 14:36:05 UTC 2015
#35181: Using Lodash makes media_upload dialog unable to use
--------------------------+------------------------------
Reporter: anhntbk08 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version: 4.4
Severity: normal | Resolution:
Keywords: close | Focuses:
--------------------------+------------------------------
Changes (by swissspidy):
* keywords: => close
Comment:
WordPress uses Underscore.js for the media modal. It uses the same _
variable as Lodash.
You need to use Lodash's noConflict mode in your application to prevent it
from overwriting the variable:
{{{
var lodash = _.noConflict();
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35181#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list