Make WordPress Core

Opened 3 weeks ago

Last modified 3 weeks ago

#62846 assigned enhancement

Allow direct linking to site health check result

Reported by: sippis's profile sippis Owned by: audrasjb's profile audrasjb
Milestone: 6.8 Priority: normal
Severity: normal Version:
Component: Site Health Keywords: has-patch reporter-feedback
Focuses: ui Cc:

Description

It would be neat if directly linking to a site health check result would be possible. The link should open the linked check to show the description.

Use case: plugin is checking if site can communicate with a necessary 3rd party server. Communication with that server is mission critical for the plugin functionality to work. There's check for that in site health, and in case of failure also admin notice. Health check description contains more explanation of possible causes and instructions how to fix. In this case, it would make a lot of sense to have direct link in the notice to the test having that description.

Change History (4)

#1 @audrasjb
3 weeks ago

  • Focuses ui added
  • Keywords needs-patch added
  • Milestone changed from Awaiting Review to 6.8
  • Owner set to audrasjb
  • Status changed from new to assigned

Hello, I support this proposal at 100%!
I'm moving this to milestone 6.8 since I think I should be able to work on this one, but other PRs are welcome!

This ticket was mentioned in PR #8184 on WordPress/wordpress-develop by @audrasjb.


3 weeks ago
#2

  • Keywords has-patch added; needs-patch removed

Trac ticket: https://core.trac.wordpress.org/ticket/62846

This PR does the following changes:

  • Add an ID to each accordion button
  • On page load, get the hash and open the related accordion
  • Update the URL hash each time an accordion button is clicked

This way, people can use the URL of the page to share a direct link to the site health info section they want.
Note: As a first iteration, this changeset doesn't add any UI button.

#3 @audrasjb
3 weeks ago

  • Keywords reporter-feedback added

@sippis the above PR is a first iteration on this feature. It doesn't add any button but you can just use the URL of the screen after clicking any Site Health Info section. Does it work on your side?

#4 @audrasjb
3 weeks ago

Testing instruction partially provided in the PR.

Please note that this pull request can't be tested on the Playground link provided in the PR as Playground cannot interact with URL hashes.

Note: See TracTickets for help on using tickets.