Changed deprecated function to verify the actual theme