Skip to content

Conversation

afragen
Copy link
Contributor

@afragen afragen commented Jun 8, 2025

Fixes #6

Removes check on a stable PHP version to allow a pass-through to the remaining logic. The result is that anyone on a stable PHP version will not see the PHP Update Warning dashboard widget.

Signed-off-by: Andy Fragen <andy@thefragens.com>
@afragen afragen requested review from rmccue and Ipstenu June 8, 2025 20:59
@afragen
Copy link
Contributor Author

afragen commented Jun 8, 2025

Essentially passing the data back to core's logic of what to display.

@Ipstenu
Copy link
Contributor

Ipstenu commented Jun 9, 2025

That looks right to me, but I want to defer to Ryan.

return [
// If we're on the stable or secure branches, the recommended version
// If we're on the security branches, the recommended version
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Part of me wants to check for stable, but as an info ... MVP. We can do that kind of thing later with a 'contact your host...'

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From what I see in core, any PHP version listed as stable is fine as long as it's on the current minor, not latest.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah that's why it's a later thing :) We can do better. Like if you're 20 patch releases out of date, warn you.

Copy link
Member

@rmccue rmccue left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As discussed in the tech call, this was intentional, but it's also a bit annoying. We should rethink this widget in the future.

@afragen afragen merged commit 7ecc4e0 into main Jun 11, 2025
1 check passed
@afragen afragen deleted the fix-php-dashboard-logic branch June 11, 2025 19:17
@rmccue rmccue added this to the 0.3.0 milestone Jun 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve logic for Dashboard widget on PHP version
3 participants