Remove $class variable as not set

Prevent undefined variable notice on $class, not usually required as WP will do the work.