Skip to content

Commit

Permalink
updated plugin W3 Total Cache version 0.14.4
Browse files Browse the repository at this point in the history
  • Loading branch information
loftwah authored and Gitium committed Aug 14, 2020
1 parent 6b1876b commit c503895
Show file tree
Hide file tree
Showing 27 changed files with 452 additions and 435 deletions.
5 changes: 4 additions & 1 deletion wp-content/plugins/w3-total-cache/ConfigKeys.php
Original file line number Diff line number Diff line change
Expand Up @@ -2417,7 +2417,10 @@
'default' => '',
'master_only' => true
),

'jquerymigrate.disabled' => array(
'type' => 'boolean',
'default' => false,
),

// extensions keys:
//
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ jQuery(function($) {


.on('click', '.w3tc_cloudflare_zone_page', function() {
var page = jQuery(this).attr('data-page');
var page = jQuery(this).data('page');
jQuery('input[name="w3tc_action"]').val('extension_cloudflare_intro_done');
jQuery('input[name="page"]').val(page);

var url = ajaxurl + '?action=w3tc_ajax&_wpnonce=' + w3tc_nonce;

W3tc_Lightbox.load_form(url, '.w3tc_extension_cloudflare_form',
Expand Down
4 changes: 2 additions & 2 deletions wp-content/plugins/w3-total-cache/Generic_Plugin_Admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,8 @@ public function wp_ajax_w3tc_monitoring_score() {
$score = apply_filters( 'w3tc_monitoring_score', $score );

header( "Content-Type: application/x-javascript; charset=UTF-8" );
echo 'document.getElementById("w3tc_monitoring_score").innerHTML = "' .
strtr( $score, '"', '.' ) . '";';
echo 'document.getElementById("w3tc_monitoring_score") && ( document.getElementById("w3tc_monitoring_score").innerHTML = "' .
strtr( $score, '"', '.' ) . '" );';

exit();
}
Expand Down
12 changes: 7 additions & 5 deletions wp-content/plugins/w3-total-cache/Generic_WidgetBoldGrid_View.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,20 @@ jQuery( document ).ready( function( $ ) {
return;
}

try {
message = $.parseJSON( originalEvent.data );
} catch ( e ) {
return;
if ( originalEvent.data ) {
try {
message = $.parseJSON( originalEvent.data );
} catch ( e ) {
return;
}
}

if ( ! message || 'undefined' === typeof message.action ) {
return;
}

if (message.action == 'install-plugin') {
window.location = $('#w3tc-boldgrid-install').attr('href');
window.location = $('#w3tc-boldgrid-install').prop('href');
}
});
});
Loading

0 comments on commit c503895

Please sign in to comment.