wordpress-sdk icon indicating copy to clipboard operation
wordpress-sdk copied to clipboard

The `Compatibility with WordPress` should ignore "patch" versions of WordPress

Open daigo75 opened this issue 4 years ago • 0 comments

🐞 bug report

Behavior: When a plugin is public on the public WordPress repository, it only has to declare compatibility to the major and minor versions of WordPress. For example, a plugin can declare the following in file readme.txt: Tested up to: 5.7 And WordPress would interpret that as "compatible with WordPress up to 5.7.x" (i.e. 5.7, 5.7.1, 5.7.2, and so on).

With Freemius, it looks like the check is performed on the whole version number from WordPress. If the plugin is declared as Tested up to: 5.7, Freemius will show "Compatibility with WordPress 5.7.2: Unknown". If the plugin declares Tested up to: 5.8, then it will also appear as compatible with WordPress 5.7.x.

The fix should be simple, it would be to ignore the "patch" number, i.e. the 3rd value in the version, like WordPress does with public plugins.

Versions: (*)

  • Freemius SDK Version: 2.4.2
  • WordPress Version: 5.7.x
  • PHP Version: 7.2-7.4

Plugin / Theme: (*)

  • Name: WooCommerce Prices by Country
  • Slug: woocommerce-prices-by-country
  • Freemius ID: 8339

daigo75 avatar Jun 07 '21 20:06 daigo75