var url = window.location.pathname var filename = url.substring(url.lastIndexOf('/') + 1); jQuery(document).ready(function($) { if (filename == 'update-core.php' && $('form.upgrade').length > 0) { $('form.upgrade input#upgrade').attr('disabled', true); $('ul.core-updates').prepend('
W3 Total Cache may cause issues during major WordPress core updates. We recommend you disable W3 Total Cache before continuing. Please remember to re-activate it after the update.