You appear to be a bot. Output may be restricted
Deprecated. Genesis now (as of 2.7.0) uses semantic versioning, and will no longer redirect to different pages based on major/minor version status.
Determine if a version string is considered a major release under Genesis rules. For Genesis, a release of something like 2.5.0 is a major release version, as is 2.6.0.
- or 2.6.2 is considered a minor release version.
All values of
PARENT_THEME_VERSION are given as 3 digits (5 characters), x.y.z. The major release after 2.9.0 will be 3.0.0, and not 2.10.0 – Genesis does not follow semantic versioning.
As such, we can simply check if the 4th and 5th characters until the end, are `.0`. This means that a value of
2.6.0-dev will NOT be counted as a major version.
$bool = genesis_is_major_version( $version );
- ( string ) required – Version number.
bool True if version has
.0 as 4th and 5th character onwards, false otherwise.
File name: genesis/lib/functions/deprecated.php