Skip to main content
1 of 2
scribu
  • 13.2k
  • 38
  • 49

Oh, you're so very close. :)

Just add global $wp_version.

Other version globals can be found in wp-includes/version.php

Also, it's safer to use PHP's version_compare().

scribu
  • 13.2k
  • 38
  • 49