removing older versions of wp due to unit testing incompatibility
making sure to cast terms as int to support older versions of wp