load-scripts.php Can't find variable
-
I’m seeing a couple of errors in some core WordPress files. Do plugins write to default.js or load-scripts.php or are these purely core?
Here are the errors:
default.js
Line 3:14 undefined is not an object (evaluating ‘wp.media’)
wp.media.customlibEditGallery = {
Here’s a little more code, to give context:jQuery(document).ready(function($) { var $upload_button = jQuery('.qode-gallery-upload'); <strong> wp.media.customlibEditGallery = { </strong> frame: function() { if (this._frame)load-scripts.php
Line 13 Can’t find variable:jQuery
}(function(a) {
here’s the code around it:!function(a) { "function" == typeof define && define.amd ? define(["jquery"], a) : a(jQuery) <strong>}(function(a) {</strong> function b(b, d) { var e, f, g, h = b.nodeName.toLowerCase(); return "area" === h ? (e = b.parentNode, f = e.name, b.href && f && "map" === e.nodeName.toLowerCase() ? (g = a("img[usemap='#" + f + "']")[0], !!g && c(g)) : !1) : (/^(input|select|textarea|button|object)$/.test(h)?!b.disabled : "a" === h ? b.href || d : d) && c(b) }Line 1246:19 Can’t find variable:_
regexp: _.memoize(function(a) {
code around that line:<strong>regexp: _.memoize(function(a) {</strong> return new RegExp("\\[(\\[?)(" + a + ")(?![\\w-])([^\\]\\/]*(?:\\/(?!\\])[^\\]\\/]*)*?)(?:(\\/)\\]|\\](?:([^\\[]*(?:\\[(?!\\/\\2\\])[^\\[]*)*)(\\[\\/\\2\\]))?)(\\]?)", "g") }),I’m seeing issues with updating plugins, using the upload button, and theme rendering in mobile.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘load-scripts.php Can't find variable’ is closed to new replies.