如果有人感兴趣,这是文件的当前内容。我只希望他们对自己的所作所为更加透明。
if (!defined(\'WP_AUTO_UPDATE_CORE\')) {
define( \'WP_AUTO_UPDATE_CORE\', false );
}
if (function_exists("add_filter")) {
function siteground_remove_php_modules_imagick( $modules ) {
unset( $modules[\'imagick\'] );
return $modules;
}
function siteground_remove_update_check( $tests ) {
unset( $tests[\'async\'][\'background_updates\'] );
unset( $tests[\'direct\'][\'php_version\'] );
return $tests;
}
add_filter( \'site_status_test_php_modules\', \'siteground_remove_php_modules_imagick\' );
add_filter( \'site_status_tests\', \'siteground_remove_update_check\' );
add_filter( \'auto_core_update_send_email\', \'__return_false\' );
function siteground_xmlrpc_bruteforce_detector( $user_login = \'unknown\', $error = false ) {
if ( !isset( $_SERVER["SCRIPT_FILENAME"] ) )
return;
if ( !strpos( $_SERVER["SCRIPT_FILENAME"], "/xmlrpc.php" ) )
return;
if ( function_exists( \'c74ce9b9ffdebe0331d8e43e97206424_notify\' ) )
c74ce9b9ffdebe0331d8e43e97206424_notify( \'wpxmlrpc\', getcwd(), $user_login );
}
add_action(\'wp_login_failed\', \'siteground_xmlrpc_bruteforce_detector\', 10, 2);
}