removed some code from REST_Admin_API so it won't give errors at run
removed some code from REST_Admin_API so it won't give errors at run