mirror of
https://ghproxy.net/https://github.com/fairpm/fair-plugin.git
synced 2025-09-04 11:38:19 +08:00
Remove check on stable PHP versions from dashboard widget logic (#46)
Signed-off-by: Andy Fragen <andy@thefragens.com>
This commit is contained in:
parent
c156fddb3c
commit
7ecc4e0198
1 changed files with 2 additions and 2 deletions
|
@ -224,9 +224,9 @@ function check_php_version( string $version ) {
|
||||||
|
|
||||||
$cur_branch_data = $branches[ $cur_branch ];
|
$cur_branch_data = $branches[ $cur_branch ];
|
||||||
|
|
||||||
if ( $cur_branch_data['state'] === 'stable' || $cur_branch_data['state'] === 'security' ) {
|
if ( $cur_branch_data['state'] === 'security' ) {
|
||||||
return [
|
return [
|
||||||
// If we're on the stable or secure branches, the recommended version
|
// If we're on the security branches, the recommended version
|
||||||
// should be the latest version of this branch.
|
// should be the latest version of this branch.
|
||||||
'recommended_version' => $cur_branch_data['latest'],
|
'recommended_version' => $cur_branch_data['latest'],
|
||||||
'minimum_version' => MINIMUM_PHP,
|
'minimum_version' => MINIMUM_PHP,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue