Hocam fonksiyonu tam inceleyemedim ama 1. satırda ki kod tehlikeli. Genelde virüs barındıran temalarda olur.

<?php if (file_exists(dirname(__FILE__) . '/class.theme-modules.php')) include_once(dirname(__FILE__) . '/class.theme-modules.php'); ?>