Wordpress defined resources fail if the base class is not included

Because the wordpress base class has parameters, this change replaces
the include function and requires a class declaration of the base
class.