| Server IP : 213.132.222.41 / Your IP : 216.73.216.254 Web Server : Apache System : Linux plesk4.nlhosting.net 6.1.0-0.deb11.50-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.176-1~deb11u1 (2026-07-02) x86_64 User : thecovenant ( 10927) PHP Version : 8.3.32 Disable Function : opcache_get_status MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/vhosts/thecovenant.nl/httpdocs/wp-content/plugins/ewww-image-optimizer/includes/ |
Upload File : |
jQuery(document).on( 'click', '.ewww-manual-optimize', function() {
var post_id = jQuery(this).data('id');
var ewww_nonce = jQuery(this).data('nonce');
var ewww_manual_optimize_data = {
action: 'ewww_flag_manual',
ewww_manual_nonce: ewww_nonce,
ewww_force: 1,
ewww_attachment_ID: post_id,
};
jQuery('#ewww-flag-status-' + post_id ).html( ewww_vars.optimizing );
jQuery.post(ajaxurl, ewww_manual_optimize_data, function(response) {
var ewww_manual_response = JSON.parse(response);
if (ewww_manual_response.error) {
jQuery('#ewww-flag-status-' + post_id ).html( ewww_manual_response.error );
} else if (ewww_manual_response.success) {
jQuery('#ewww-flag-status-' + post_id ).html( ewww_manual_response.success );
}
});
return false;
});
jQuery(document).on( 'click', '.ewww-manual-image-restore', function() {
var post_id = jQuery(this).data('id');
var ewww_nonce = jQuery(this).data('nonce');
var ewww_manual_optimize_data = {
action: 'ewww_flag_image_restore',
ewww_manual_nonce: ewww_nonce,
ewww_attachment_ID: post_id,
};
jQuery('#ewww-flag-status-' + post_id ).html( ewww_vars.restoring );
jQuery.post(ajaxurl, ewww_manual_optimize_data, function(response) {
var ewww_manual_response = JSON.parse(response);
if (ewww_manual_response.error) {
jQuery('#ewww-flag-status-' + post_id ).html( ewww_manual_response.error );
} else if (ewww_manual_response.success) {
jQuery('#ewww-flag-status-' + post_id ).html( ewww_manual_response.success );
}
});
return false;
});
jQuery(document).on('click', '.ewww-show-debug-meta', function() {
var post_id = jQuery(this).data('id');
jQuery('#ewww-debug-meta-' + post_id).toggle();
});