From 1030e19d916d766fc0e1855f2ee1620c087d73e5 Mon Sep 17 00:00:00 2001 From: Pascal Birchler Date: Tue, 20 Jan 2026 19:11:06 +0100 Subject: [PATCH] Pass correct variable to `requirements_not_met` --- src/Plugin_Command.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Plugin_Command.php b/src/Plugin_Command.php index ef5b061f..8a59f71d 100644 --- a/src/Plugin_Command.php +++ b/src/Plugin_Command.php @@ -631,7 +631,7 @@ protected function install_from_repo( $slug, $assoc_args ) { } if ( ! $compatible_php ) { - return new WP_Error( 'requirements_not_met', "This plugin does not work with your version of PHP. Minimum PHP required is $compatible_php" ); + return new WP_Error( 'requirements_not_met', "This plugin does not work with your version of PHP. Minimum PHP required is $requires_php" ); } }