From 74b04ff92285140fd4a3553cb37dad5c55a72775 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABl=20M=C3=A9tais?= Date: Sun, 10 Jan 2021 23:50:44 +0000 Subject: [PATCH] Improve WP detection --- lib/tools/redownload/redownload.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/tools/redownload/redownload.js b/lib/tools/redownload/redownload.js index 568ba2a..ca38b93 100644 --- a/lib/tools/redownload/redownload.js +++ b/lib/tools/redownload/redownload.js @@ -760,7 +760,9 @@ var Redownload = function() { debug('Checking if it is WordPress on file %s', htmlRequest.url); - if (htmlRequest && htmlRequest.weightCheck.bodyBuffer.indexOf('/wp-content/') >= 0) { + if (htmlRequest && + (htmlRequest.weightCheck.bodyBuffer.indexOf('/wp-content/') >= 0 || + htmlRequest.weightCheck.bodyBuffer.indexOf('/wp-include/') >= 0)) { debug('Response: yes.'); return true; } else {