#47388 closed defect (bug) (fixed)
Missing docs for filters in site health check
Reported by: | johnbillion | Owned by: | desrosj |
---|---|---|---|
Milestone: | 5.3 | Priority: | normal |
Severity: | normal | Version: | 5.2 |
Component: | Site Health | Keywords: | servehappy has-patch |
Focuses: | Cc: |
Attachments (1)
Change History (9)
#3
@
5 years ago
- Keywords commit added
I agree that the automatic_updates_is_vcs_checkout
filter should be replaced by the WP_Upgrader::is_vcs_checkout()
as there is a lot of duplicated code, but there are some trade offs. The error message would become much less specific, for example. The checked directory and VCS directory would not be available currently without copying the logic over from the WP_Upgrader
method and those are specifically mentioned in the messaging. The filter would also still need to be run to detect a change in value.
Let's add the missing documentation here and open a new ticket to explore ways to remove the duplicated code.
#4
@
5 years ago
- Owner set to desrosj
- Resolution set to fixed
- Status changed from new to closed
In 45459:
#5
@
5 years ago
- Keywords fixed-major added; commit removed
- Resolution fixed deleted
- Status changed from closed to reopened
Reopening for backport consideration. Opened #47428 for discussion around improving the version control test.
In addition, using these filters instead of appropriate functions or methods doesn't seem correct to me. For example, the
WP_Upgrader::is_vcs_checkout()
method should probably be used in place of theautomatic_updates_is_vcs_checkout
filter.