Call to undefined function error is not related to wordpress. It is server configuration issue. Server administrator update PHP version for mysql. WordPress recommended update your theme in time. If not update your theme and facing above call to undefined function mysql_escape_string() in WordPress. To fix Call to undefined function error login your FTP account or goto file manager from cpanel. Open functions.php file from recent activated theme. Find the below code top of your functions.php file.