• Resolved maltfield

    (@maltfield)


    This thread was created to report a bug in this plugin’s json on ww.wp.xz.cn

    * https://api.ww.wp.xz.cn/plugins/info/1.0/payment-addons-for-woocommerce.json

    The above file clearly states that the latest version is 1.13.12

    
    {
       "name":"Stripe Payment For WooCommerce",
       "slug":"payment-addons-for-woocommerce",
       "version":"1.13.12",
    ...
    

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

    
       "versions":{
          "1.1.0":"https:\/\/downloads.wp.xz.cn\/plugin\/payment-addons-for-woocommerce.1.1.0.zip",
          "1.11.1":"https:\/\/downloads.wp.xz.cn\/plugin\/payment-addons-for-woocommerce.1.11.1.zip",
          "1.11.2":"https:\/\/downloads.wp.xz.cn\/plugin\/payment-addons-for-woocommerce.1.11.2.zip",
          "1.13.1":"https:\/\/downloads.wp.xz.cn\/plugin\/payment-addons-for-woocommerce.1.13.1.zip",
          "1.13.10":"https:\/\/downloads.wp.xz.cn\/plugin\/payment-addons-for-woocommerce.1.13.10.zip",
          "1.13.2":"https:\/\/downloads.wp.xz.cn\/plugin\/payment-addons-for-woocommerce.1.13.2.zip",
          "1.13.4":"https:\/\/downloads.wp.xz.cn\/plugin\/payment-addons-for-woocommerce.1.13.4.zip",
          "1.13.6":"https:\/\/downloads.wp.xz.cn\/plugin\/payment-addons-for-woocommerce.1.13.6.zip",
          "1.13.7":"https:\/\/downloads.wp.xz.cn\/plugin\/payment-addons-for-woocommerce.1.13.7.zip",
          "1.13.9":"https:\/\/downloads.wp.xz.cn\/plugin\/payment-addons-for-woocommerce.1.13.9.zip",
          "1.2.0":"https:\/\/downloads.wp.xz.cn\/plugin\/payment-addons-for-woocommerce.1.2.0.zip",
          "1.4.1":"https:\/\/downloads.wp.xz.cn\/plugin\/payment-addons-for-woocommerce.1.4.1.zip",
          "1.5.0":"https:\/\/downloads.wp.xz.cn\/plugin\/payment-addons-for-woocommerce.1.5.0.zip",
          "1.7.1":"https:\/\/downloads.wp.xz.cn\/plugin\/payment-addons-for-woocommerce.1.7.1.zip",
          "1.9.1":"https:\/\/downloads.wp.xz.cn\/plugin\/payment-addons-for-woocommerce.1.9.1.zip"
       },
    

    This breaks automation for tools that query the ww.wp.xz.cn 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.ww.wp.xz.cn/plugins/info/1.0/woocommerce.json

    
    {
      "name": "WooCommerce",
      "slug": "woocommerce",
      "version": "9.7.1",
    ...
     "versions": {
        "3.0.0": "https://downloads.wp.xz.cn/plugin/woocommerce.3.0.0.zip",
        "3.0.1": "https://downloads.wp.xz.cn/plugin/woocommerce.3.0.1.zip",
        "3.0.2": "https://downloads.wp.xz.cn/plugin/woocommerce.3.0.2.zip",
    ...
        "9.7.0": "https://downloads.wp.xz.cn/plugin/woocommerce.9.7.0.zip",
        "9.7.0-beta.1": "https://downloads.wp.xz.cn/plugin/woocommerce.9.7.0-beta.1.zip",
        "9.7.0-rc.1": "https://downloads.wp.xz.cn/plugin/woocommerce.9.7.0-rc.1.zip",
        "9.7.1": "https://downloads.wp.xz.cn/plugin/woocommerce.9.7.1.zip",
        "9.8.0-beta.1": "https://downloads.wp.xz.cn/plugin/woocommerce.9.8.0-beta.1.zip",
        "trunk": "https://downloads.wp.xz.cn/plugin/woocommerce.zip"
      },
    

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

    Please update your plugin on ww.wp.xz.cn to include the current version.

Viewing 1 replies (of 1 total)
  • Plugin Support boatyang

    (@boatyang)

    Nice finding! We have make up the missing tag for v1.13.12 and also released the latest v1.14.0 with tag as well.

Viewing 1 replies (of 1 total)

The topic ‘[Bug] missing versions in plugin json’ is closed to new replies.