[wp-meta] [Making WordPress.org] #4468: Plugin Update Check API returns tested field without patch version

Making WordPress.org noreply at wordpress.org
Wed May 22 10:31:05 UTC 2019


#4468: Plugin Update Check API returns tested field without patch version
--------------------+--------------------
 Reporter:  abrain  |      Owner:  (none)
     Type:  defect  |     Status:  new
 Priority:  normal  |  Milestone:
Component:  API     |   Keywords:
--------------------+--------------------
 When plugins specify `Tested up to:` in their `readme.txt`, the Plugin
 Directory will append the current patch version number as there should be
 no breaking changes. This seems not to be reflected in the Plugin Update
 Check API, causing WordPress Core to show incorrect compatibility info.

 For example the plugin ''Contact Form 7'':
 The [https://plugins.svn.wordpress.org/contact-
 form-7/tags/5.1.3/readme.txt readme.txt of the stable tag] has set `Tested
 up to: 5.2`
 [https://wordpress.org/plugins/contact-form-7/ Plugin Directory page]
 shows `Tested up to: 5.2.1`
 [https://api.wordpress.org/plugins/info/1.0/contact-form-7.json Plugins
 Info API 1.0] returns `tested: 5.2.1`
 [https://api.wordpress.org/plugins/info/1.2/?action=plugin_information&request%5Bslug%5D
 =contact-form-7 Plugins Info API 1.2] returns `tested: 5.2.1`

 Result from the Update Check API (`https://api.wordpress.org/plugins
 /update-check/1.1/`) (trimmed):

 {{{
 {
   "plugins": {
     "contact-form-7/wp-contact-form-7.php": {
       "id": "w.org/plugins/contact-form-7",
       "slug": "contact-form-7",
       "plugin": "contact-form-7/wp-contact-form-7.php",
       "new_version": "5.1.3",
       "url": "https://wordpress.org/plugins/contact-form-7/",
       "package": "https://downloads.wordpress.org/plugin/contact-
 form-7.5.1.3.zip",
       "icons": {
         "2x": "https://ps.w.org/contact-form-7/assets/icon-
 256x256.png?rev=984007",
         "1x": "https://ps.w.org/contact-form-7/assets/icon-
 128x128.png?rev=984007"
       },
       "banners": {
         "2x": "https://ps.w.org/contact-form-7/assets/banner-
 1544x500.png?rev=860901",
         "1x": "https://ps.w.org/contact-form-7/assets/banner-
 772x250.png?rev=880427"
       },
       "banners_rtl": [],
       "tested": "5.2",
       "requires_php": false,
       "compatibility": []
     }
   },
   "translations": [],
   "no_update": {}
 }
 }}}

 Here, only `5.2` is returned for `tested`. This causes the WordPress Core
 update screen to show `Compatibility with WordPress 5.2.1: Unknown`.

 Given that the [https://core.trac.wordpress.org/browser/trunk/src/wp-admin
 /update-core.php#L292 respective check in Core] hasn't been touched in 9
 months, it seems that the Plugin Check API changed its behaviour.

-- 
Ticket URL: <https://meta.trac.wordpress.org/ticket/4468>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org


More information about the wp-meta mailing list