文件操作 - wpscan-themes.js
返回文件管理
返回主菜单
删除本文件
文件: /home/www/public/wp-content/plugins/ionos-security/build/wpscan-themes.js
编辑文件内容
(()=>{"use strict";const e=window.wp.i18n;function t(e){e.classList.add("button-disabled","noclick")}function n(e){return window.parent.wpScan?.find((t=>t.slug===e))?.severity}function i(t,n,i,o){if(!["none","medium","high","unknown"].includes(t)||!["scanned","installed","active","updatable"].includes(n))return;if(!("installed"!==n&&"active"!==n||"unknown"!==t&&"none"!==t))return;const s={none:(0,e.__)("The vulnerability scan did not find any issues.","ionos-security"),unknown:(0,e.__)("The vulnerability scan did not produce any results.","ionos-security"),medium:(0,e.__)("The vulnerability scan has found issues.","ionos-security"),high:(0,e.__)("The vulnerability scan has found critical issues.","ionos-security")},c={unknown:{installed:(0,e.__)("Activation is not recommended.","ionos-security"),scanned:(0,e.__)("Installation is not recommended.","ionos-security")},medium:{installed:(0,e.__)("Activation is not recommended.","ionos-security"),scanned:(0,e.__)("Installation is not recommended.","ionos-security")},high:{installed:(0,e.__)("Activation is not possible.","ionos-security"),scanned:(0,e.__)("Installation is not possible.","ionos-security")}},r=c[t]?.[n],a="scanned"!==n&&`<a href="${adminUrl}" target="_parent">${(0,e.__)("More information.","ionos-security")}</a>`,u=[s[t],r,a].filter((e=>e)).join(" "),l=document.createElement("div");i.insertBefore(l,o?i.querySelector(o):i.firstChild),l.outerHTML=`<div class="notice notice-alt ${{none:"notice-success",unknown:"notice-warning",medium:"notice-warning",high:"notice-error"}[t]} inline"><p>${u}</p></div>`}function o(){for(const e of document.querySelectorAll(".theme-browser .themes .theme")){const o=e.dataset?.slug;if(!o)continue;const s=e.classList.contains("active"),c=n(o);i(c,s?"active":"installed",document.querySelector(`.theme[data-slug="${o}"]`),".more-details"),s||"high"!==c||(t(e.querySelector("a.button.activate")),t(e.querySelector("a.button.load-customize")))}}function s(){const e=document.querySelector(".theme-overlay");if(0===e.childElementCount)return;const o=e.classList.contains("active")||e.firstChild?.classList.contains("active"),s=n(new URLSearchParams(window.location.search).get("theme")||document.querySelector(".theme.active").dataset.slug);i(s,o?"active":"installed",e.querySelector(".theme-info"),".theme-autoupdate"),o||"high"!==s||(t(e.querySelector(".inactive-theme a.button.activate")),t(e.querySelector(".inactive-theme a.button.load-customize")))}new MutationObserver(((e,t)=>{for(const n of e)n.target.classList.contains("rendered")&&!n.oldValue.includes("rendered")&&(o(),new MutationObserver(o).observe(document.querySelector(".theme-browser .themes"),{childList:!0}),document.querySelector(".theme-overlay.active")&&s(),t.disconnect())})).observe(document.querySelector(".theme-browser"),{attributeFilter:["class"],attributeOldValue:!0}),new MutationObserver(s).observe(document.querySelector(".theme-overlay"),{childList:!0})})();
修改文件时间
将文件时间修改为当前时间的前一年
删除文件