Added wp version check