A single added line in WordPress’s query.php restores index.php and .htaccess from hidden backup files on every page load, undoing any cleanup.