Skip to content

Commit 1b91bbb

Browse files
committed
The 6.6 branch does not support PHP < 7.2.
1 parent a2deb46 commit 1b91bbb

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

tools/local-env/scripts/install.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,6 @@ function wp_cli( cmd ) {
5757
function install_wp_importer() {
5858
const testPluginDirectory = 'tests/phpunit/data/plugins/wordpress-importer';
5959

60-
61-
// The final version of the WordPress Importer plugin with support for PHP < 7.2 is 0.9.0.
62-
const phpVersion = parseFloat(process.env.LOCAL_PHP.split('-')[0]);
63-
const branchFlag = phpVersion < 7.2 ? '--branch 0.9.0' : '';
64-
6560
execSync( `docker compose exec -T php rm -rf ${testPluginDirectory}`, { stdio: 'inherit' } );
66-
execSync( `docker compose exec -T php git clone ${branchFlag} https://github.com/WordPress/wordpress-importer.git ${testPluginDirectory} --depth=1`, { stdio: 'inherit' } );
61+
execSync( `docker compose exec -T php git clone https://github.com/WordPress/wordpress-importer.git ${testPluginDirectory} --depth=1`, { stdio: 'inherit' } );
6762
}

0 commit comments

Comments
 (0)