afragen / wp-dependency-installer

A lightweight class to add to WordPress plugins/themes to automatically install plugin dependencies.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature: allow requiring a version number range

cliffordp opened this issue · comments

Maybe my plugin requires gravityforms/gravityforms.php but it should require Gravity Forms v2.0+ or say version 3 is coming out soon and I know I didn't update my code for it yet so I need to require at least v2.0 up to anything less than v3.0 -- basically the equivalent of ~2.0 from https://getcomposer.org/doc/articles/versions.md#writing-version-constraints

This would also be helpful for preventing accidentally clicking "Update" like we all do blindly sometimes when GF v3.0 comes out and shows up in the wp-admin dashboard.

This is very out of scope for this framework. I would suggest using composer for this feature.