• This thread was created to report a bug in this plugin’s json on wordpress.org

    * https://api.wordpress.org/plugins/info/1.0/woo-multi-currency.json

    The above file clearly states that the latest version is 2.2.12

    {
       "name":"CURCY – Multi Currency for WooCommerce – Smoothly on WooCommerce 9.x",
       "slug":"woo-multi-currency",
       "version":"2.2.12",
    ...
    

    The problem is: the “versions” section doesn’t include any of the versions beyond 2.1.12

       "versions":{
          "2.1.12":"https:\/\/downloads.wordpress.org\/plugin\/woo-multi-currency.2.1.12.zip",
          "2.1.14":"https:\/\/downloads.wordpress.org\/plugin\/woo-multi-currency.2.1.14.zip",
          "2.1.7":"https:\/\/downloads.wordpress.org\/plugin\/woo-multi-currency.2.1.7.zip",
          "2.1.8":"https:\/\/downloads.wordpress.org\/plugin\/woo-multi-currency.2.1.8.zip",
          "2.1.9":"https:\/\/downloads.wordpress.org\/plugin\/woo-multi-currency.2.1.9.zip"
       },
    

    This breaks automation for tools that query the wordpress.org api to fetch updates for wordpress installs. For reference, here’s how this looks for another plugin. I’ll use ‘woocommerce’ as an example:

    * https://api.wordpress.org/plugins/info/1.0/woocommerce.json

    {
       "name":"WooCommerce",
       "slug":"woocommerce",
       "version":"10.6.1",
    ...
     "versions": {
    ...
          "10.6.0":"https:\/\/downloads.wordpress.org\/plugin\/woocommerce.10.6.0.zip",
          "10.6.0-beta.1":"https:\/\/downloads.wordpress.org\/plugin\/woocommerce.10.6.0-beta.1.zip",
          "10.6.0-beta.2":"https:\/\/downloads.wordpress.org\/plugin\/woocommerce.10.6.0-beta.2.zip",
          "10.6.0-rc.1":"https:\/\/downloads.wordpress.org\/plugin\/woocommerce.10.6.0-rc.1.zip",
          "10.6.1":"https:\/\/downloads.wordpress.org\/plugin\/woocommerce.10.6.1.zip",
      },
    

    Note that the (truncated for for brevity) “versions” section includes *all* the versions — most importantly the current version 10.6.1.

    Please update your plugin on wordpress.org to include the current version.

    • This topic was modified 2 weeks, 3 days ago by maltfield.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author mytrinh

    (@mytrinh)

    Thank you for reaching out to us.

    I would like to clarify that this is not a bug. The list of files/versions in the JSON simply represents development or older versions available for testing purposes only. These versions are not officially supported( as shown here: https://prnt.sc/hDp01t8Nhj4c ).

    Currently, Version 2.2.12 is the only Stable tag and officially supported version. It has been correctly declared according to the standard WordPress structure requirements.

    Best regards.

    Thread Starter maltfield

    (@maltfield)

    Hi,

    I would like to clarify that this *is* a bug.

    The JSON, per the wordpress API, should list all of your stable versions, not just your beta/testing versions.

    Following the stable version, we get a json error because no download link is provided for version 2.2.12.

    Note that you do provide a link for downloading v2.1.12. You do NOT provide a link for downloading 2.2.12.

    I urge you to please re-visit my woocommerce example, and how 99% of other wordpress plugins keep this file up-to-date. By not sticking to the standard, you’re breaking cli tools that can’t fetch your plugin.

    Plugin Author mytrinh

    (@mytrinh)

    Hi,

    To clarify, WordPress automatically generates API endpoints following specific structural requirements for all plugins. I can confirm that our plugin is correctly declared and fully complies with these standard structure requirements.

    To retrieve the download link for a plugin via API, we’d recommend following the latest official WordPress documentation for the most accurate implementation.

    Best regards.

Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.