Changed the conditional statements of WordPress comparison to use version_compare() funciton.