updated plugin W3 Total Cache
version 2.7.1
This commit is contained in:
@ -4,7 +4,7 @@
|
||||
* @link https://www.gstatic.com/charts/loader.js
|
||||
* @file Google Charts loader.
|
||||
* @author Google.
|
||||
* @since X.X.X
|
||||
* @since 2.7.0
|
||||
*/
|
||||
|
||||
(function(){/*
|
||||
|
@ -434,6 +434,10 @@ function w3tc_lightbox_upgrade(nonce, data_src, renew_key) {
|
||||
}
|
||||
|
||||
function w3tc_lightbox_buy_plugin(nonce, data_src, renew_key, client_id) {
|
||||
if (window.w3tc_ga) {
|
||||
client_id = w3tc_ga_cid;
|
||||
}
|
||||
|
||||
var minWidth = jQuery(window).width() - 30;
|
||||
var minHeight = jQuery(window).height() - 30;
|
||||
|
||||
@ -526,11 +530,45 @@ jQuery(function() {
|
||||
}
|
||||
var renew_key = jQuery(this).data('renew-key');
|
||||
|
||||
if (window.w3tc_ga) {
|
||||
w3tc_ga(
|
||||
'event',
|
||||
'button',
|
||||
{
|
||||
eventCategory: 'click',
|
||||
eventLabel: 'license_upgrade_' + data_src
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
w3tc_lightbox_upgrade(nonce, data_src, renew_key);
|
||||
jQuery('#w3tc-license-instruction').show();
|
||||
return false;
|
||||
});
|
||||
|
||||
jQuery('.button-renew-plugin').on( 'click', function() {
|
||||
var data_src = jQuery(this).data('src');
|
||||
var nonce = jQuery(this).data('nonce');
|
||||
if (!nonce) {
|
||||
nonce = w3tc_nonce;
|
||||
}
|
||||
var renew_key = jQuery(this).data('renew-key');
|
||||
|
||||
if (window.w3tc_ga) {
|
||||
w3tc_ga(
|
||||
'event',
|
||||
'button',
|
||||
{
|
||||
eventCategory: 'click',
|
||||
eventLabel: 'license_renew_' + data_src
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
w3tc_lightbox_buy_plugin(nonce, data_src, renew_key);
|
||||
return false;
|
||||
});
|
||||
|
||||
jQuery('body').on('click', '.w3tc_lightbox_close', function() {
|
||||
W3tc_Lightbox.close();
|
||||
});
|
||||
|
@ -325,7 +325,7 @@ function w3tc_csp_reference() {
|
||||
*
|
||||
* Prevent enabling Bunny CDN ("bunnycdn" engine) for both CDN and CDNFSD.
|
||||
*
|
||||
* @since X.X.X
|
||||
* @since 2.6.0
|
||||
*
|
||||
* @returns null
|
||||
*/
|
||||
@ -1577,6 +1577,7 @@ jQuery(function() {
|
||||
);
|
||||
}
|
||||
});
|
||||
|
||||
jQuery('body').on('click', 'input[type="submit"]', function() {
|
||||
var name = jQuery(this).attr('name');
|
||||
var id = jQuery(this).attr('id');
|
||||
@ -1626,6 +1627,20 @@ jQuery(function() {
|
||||
);
|
||||
}
|
||||
});
|
||||
|
||||
// Log if the admin notice containing the renew license button is present.
|
||||
if (jQuery('.button-renew-plugin').length > 0) {
|
||||
if (window.w3tc_ga) {
|
||||
w3tc_ga(
|
||||
'event',
|
||||
'w3tc_error',
|
||||
{
|
||||
eventCategory: 'w3tc_renew_notice',
|
||||
eventLabel: 'Renew Now'
|
||||
}
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
jQuery("a").on('click', function(event) {
|
||||
|
Reference in New Issue
Block a user