#63983 closed defect (bug) (fixed)
wordpress-importer tests failing for old branches on PHP < 7.2
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | 6.8.4 | Priority: | normal |
| Severity: | normal | Version: | |
| Component: | Build/Test Tools | Keywords: | has-patch |
| Focuses: | Cc: |
Description (last modified by )
The WordPress Importer plugin has raised the minimum required version of PHP to 7.2 as of September 5, 2025 (see the PR on GitHub).
This has caused the PHPUnit tests to fail when running on older versions of PHP.
The Importer tests were removed from wordpress-develop in #42668/[59769].
The test workflow either needs a new boolean input to control whether these tests run, or the importer tests should be disabled entirely in older branches supporting PHP 7.1 and earlier.
Change History (27)
This ticket was mentioned in PR #9894 on WordPress/wordpress-develop by @desrosj.
8 weeks ago
#3
- Keywords has-patch added; needs-patch removed
This fixes the failing WordPress Importer plugin tests by pinning the final version of the plugin with support for PHP < 7.2.
Trac ticket: Core-63983
8 weeks ago
#4
@swissspidy I've made the version dynamic so that the primary branch continues to be tested on 7.2+. Could you give it another look over for me?
#5
in reply to:
↑ 2
@
8 weeks ago
Replying to swissspidy:
Can we simply use an older version of the plugin on these branches?
Yes, that should work. The PR I've attached will dynamically checkout the correct version.
This ticket was mentioned in PR #9895 on WordPress/wordpress-develop by @desrosj.
8 weeks ago
#6
This fixes the failing WordPress Importer plugin tests by pinning the final version of the plugin with support for PHP < 7.2.
Trac ticket: Core-63983
8 weeks ago
#7
Also created #9895 for the 6.5 branch, which is the latest branch with support for PHP < 7.2.
This ticket was mentioned in PR #9899 on WordPress/wordpress-develop by @desrosj.
8 weeks ago
#8
This fixes the failing WordPress Importer plugin tests by pinning the final version of the plugin with support for PHP < 7.2.
Trac ticket: Core-63983
Can we simply use an older version of the plugin on these branches?