PluginProbe
WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance / 4.7.0
WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance v4.7.0
4.7.0 4.6.1 4.6.0 4.5.5 4.5.4 4.5.3 4.5.2 3.2.20 3.2.21 3.2.22 3.2.3 3.2.5 3.2.6 3.2.7 3.2.9 3.3.0 3.3.1 3.3.2 3.4.0 3.4.1 3.4.2 3.5.0 3.6.0 3.7.0 3.7.1 All 111 releases
← All changes | js/modal.js +14 -0 3.2.22 → 4.7.0 View file →
@@ -12,8 +12,22 @@
12 12 */
13 13
14 14 var wp_optimize = window.wp_optimize || {};
15 15
16 +// WordPress v4.9 uses Backbone v1.3.3, which does not support the preinitialize() hook.
17 +// Therefore, we are adding a patch to enable support for the preinitialize() hook.
18 +(function() {
19 + var OriginalView = Backbone.View;
20 + Backbone.View = function(options) {
21 + if (typeof this.preinitialize === 'function') {
22 + this.preinitialize.apply(this, arguments);
23 + }
24 + return OriginalView.apply(this, arguments);
25 + };
26 + Backbone.View.prototype = OriginalView.prototype;
27 + Backbone.View.extend = OriginalView.extend;
28 +})();
29 +
16 30 (function($, wp) {
17 31 'use strict';
18 32 var modal = {};
19 33 modal.views = {};