Server IP : 172.67.158.161 / Your IP : 18.188.143.21 Web Server : LiteSpeed System : Linux business53.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : giankuin ( 1871) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/giankuin/dietcontrungnhanh.com/wp-content/plugins/ithemes-security-pro/pro/version-management/entries/ |
Upload File : |
/** * WordPress dependencies */ import { registerPlugin } from '@wordpress/plugins'; import { __, setLocaleData } from '@wordpress/i18n'; import { dispatch } from '@wordpress/data'; import apiFetch from '@wordpress/api-fetch'; // Silence warnings until JS i18n is stable. setLocaleData( { '': {} }, 'ithemes-security-pro' ); /** * Internal dependencies */ import { store } from '@ithemes/security.pages.site-scan'; import App from './site-scan/app.js'; registerPlugin( 'itsec-version-management-site-scan', { render() { return <App />; }, } ); dispatch( store ).registerScanComponent( { slug: 'old-site-scan', priority: 2, label: __( 'Rogue Installs', 'it-l10n-ithemes-security-pro' ), description: __( 'Check for sites that are no longer in use.', 'it-l10n-ithemes-security-pro' ), async execute() { return apiFetch( { method: 'POST', path: '/ithemes-security/v1/version-management/old-site-scan', } ); }, } );