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().
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().