You appear to be a bot. Output may be restricted
Description
Checks that the version of the plugin is at least the value we specify Notes: If there is no version function then we assume it's OK If no version is specified then we assume it's OK We perform string compares on the version – allowing for 1.0.995a etc
Usage
oik_check_version( $depend, $version );
Parameters
- $depend
- ( mixed ) required –
- $version
- ( mixed ) required –
Returns
voidSource
File name: oik/libs/oik-depends.phpLines:
1 to 10 of 10
function oik_check_version( $depend, $version ) { $active = true; $version_func = "${depend}_version"; if ( is_callable( $version_func )) { $active_version = $version_func(); $active = version_compare( $active_version, $version, "ge" ); bw_trace2( $active_version, $version, true, BW_TRACE_DEBUG ); } return( $active ); }View on GitHub View on Trac