Description
Checks the required version of oikoik needs to be at least 3.2.1 in order to use the .php files rather than the .inc files
Usage
$bool = oik_fields_check_oik_version( $version );Parameters
- $version
- ( string ) optional default: 3.2.1 – the required minimum version
Returns
bool true if the required version is satisfiedTO DO
update this test or the calling routine to prevent warning messages when oik-fields is updated to be dependent on a higher version of oik, but oik has not yet been updated. oik-fields 1.51Source
File name: oik-fields/oik-fields.phpLines:
1 to 10 of 10
function oik_fields_check_oik_version( $version="3.2.1") { $active_version = oik_version(); if ( $active_version ) { $active = version_compare( $active_version, $version, "ge" ); } else { $active = true; } bw_trace2( $active, "Active version: $active_version. Checking for: $version.", true ); return $active; }View on GitHub
