Skip to main content
more forwards compatible
Source Link
scribu
  • 13.2k
  • 38
  • 49

Oh, you're so very close. :)

Just add globalget_bloginfo( $wp_version'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().

get_bloginfo( 'version' )

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

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

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