#56134 closed enhancement (fixed)
Site Health: If 0 active plugins (themes), they can't be "all up to date"
Reported by: | Presskopp | Owned by: | SergeyBiryukov |
---|---|---|---|
Milestone: | 6.1 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Site Health | Keywords: | has-testing-info has-patch needs-testing needs-unit-tests commit |
Focuses: | Cc: |
Description
If 0 plugins are active it states:
Your site has 0 active plugins, and they are all up to date.
In my opinion we should strip the "up to date" part in that case.
Same for themes.
Attachments (1)
Change History (12)
#1
@
2 years ago
- Component changed from Text Changes to Site Health
- Milestone changed from Awaiting Review to 6.1
#4
@
2 years ago
Testing Instructions
These steps define how to test the feature or enhancement, and indicates the expected behavior or results.
Steps to Test
- Rename plugins folder and themes folder
- Open "Tools" > "Site Health"
- Open "Passed Tests" > "Your plugins are all up to date"
- Read "Your site has 0 active plugins, and they are all up to date."
- Open "recommended improvements"
- Open "Have a default theme available"
- Read "Your site has 0 installed themes, and they are all up to date."
Expected Results
Output:
- ✅ Your site does not have any active plugins.
- ✅ Your site does not have any installed themes.
#6
follow-up:
↓ 7
@
2 years ago
- Keywords needs-unit-tests added
@SergeyBiryukov, did you consider adding unit tests to the patch?
I can see that Tests_Site_Health
tests cover only the site health check cron at the moment. Adding more specific tests will probably require considerable effort. Has this been already discussed somewhere?
#7
in reply to:
↑ 6
@
2 years ago
Replying to martin.krcho:
@SergeyBiryukov, did you consider adding unit tests to the patch?
Thanks for bringing this up! Not really, I would for any functionality changes, but this is only a string change, so I don't think it requires unit tests.
I can see that
Tests_Site_Health
tests cover only the site health check cron at the moment. Adding more specific tests will probably require considerable effort. Has this been already discussed somewhere?
Yes, there's a ticket for that: #47880.
#8
@
2 years ago
Sounds good to me, @SergeyBiryukov. I will follow #47880 and see if I can help at some point.
I wonder if:Your site does not have any installed themes.
might be better as:
Your site does not have any themes installed.
The latter reads a little more natural to me, though it's a minor thing that I'm not precious about.Nevermind - Just realised this would create a discrepancy with the other strings used.
The patch looks good to me! Adding
needs-testing
.@Presskopp or @SergeyBiryukov, could you add some testing instructions and the
has-testing-info
keyword for the Test Team?