Skip to content
Merged
Prev Previous commit
Next Next commit
Require wp 4.0 for plugins update test
The plugins update-check api doesn't actually work with older versions
of WordPress, for two reasons:

The first is that the no_updates field wasn't added til 4.0 The second
is that the request that WP itself makes to the plugins update API is
missing &all=true which causes the API to always return an empty
response in my testing.

Both of these were added in 4.0 here:
WordPress/wordpress-develop@b00097b
  • Loading branch information
mrsdizzie committed Feb 14, 2025
commit 351a2ecd8d0731de0192e49960564e7d2f543c72
2 changes: 2 additions & 0 deletions features/plugin.feature
Original file line number Diff line number Diff line change
Expand Up @@ -811,6 +811,7 @@ Feature: Manage WordPress plugins
5.5
"""

@require-wp-4.0
Scenario: Show plugin update as unavailable if it doesn't meet WordPress requirements
Given a WP install
And a wp-content/plugins/example/example.php file:
Expand Down Expand Up @@ -857,6 +858,7 @@ Feature: Manage WordPress plugins
Warning: example: This update requires WordPress version 100
"""

@require-wp-4.0
Scenario: Show plugin update as unavailable if it doesn't meet PHP requirements
Given a WP install
And a wp-content/plugins/example/example.php file:
Expand Down