Replaced deprecated get_theme_data() function