Skip to content

Commit 351a2ec

Browse files
committed
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
1 parent a4021e2 commit 351a2ec

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

features/plugin.feature

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -811,6 +811,7 @@ Feature: Manage WordPress plugins
811811
5.5
812812
"""
813813

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

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

0 commit comments

Comments
 (0)