use appropriate escaping functions, and replace deprecated function for theme version check