update class from wp changes