Make WordPress Core

Opened 16 hours ago

Last modified 8 hours ago

#65477 new defect (bug)

Incorrect anchor in a link to the object cache documentation

Reported by: jdy68's profile jdy68 Owned by:
Milestone: 7.1 Priority: normal
Severity: normal Version:
Component: Site Health Keywords: has-patch commit
Focuses: Cc:

Description (last modified by sabernhardt)

Hi,

In the “Site Health” tool, when the message “You should use a persistent object cache” appears, a link (Learn more about persistent object caching) takes you to the developer documentation.
The anchor for this link is incorrect (and therefore does not work).

Please, replace

https://developer.wordpress.org/advanced-administration/performance/optimization/#persistent-object-cache

by

https://developer.wordpress.org/advanced-administration/performance/optimization/#object-caching

Thanks

Related ticket: #58518

Change History (2)

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


15 hours ago
#1

  • Keywords has-patch added; needs-patch removed

### Description
This PR addresses Trac Ticket #65477 by fixing a broken anchor link in the Site Health tool.

The "Learn more about persistent object caching" link previously directed users to https://developer.wordpress.org/advanced-administration/performance/optimization/#persistent-object-cache. This anchor is incorrect and does not work.

This update changes the anchor to the correct one: #object-caching.

### Testing Instructions

  1. Navigate to Tools > Site Health in your WordPress admin dashboard.
  2. If your local environment is not using a persistent object cache, you should see the recommended improvement: "You should use a persistent object cache".
  3. Click the link "Learn more about persistent object caching."
  4. Verify that the link correctly redirects to the specific #object-caching section on the Advanced Administration documentation page.

#2 @sabernhardt
8 hours ago

  • Description modified (diff)
  • Keywords commit added
  • Milestone changed from Awaiting Review to 7.1
  • Type changed from enhancement to defect (bug)

PR 186 edited the heading text more than three years ago, soon after r57793 updated the links to the Advanced Administration handbook. That makes #object-caching more established than #persistent-object-cache.

The #caching and #autoloaded-options anchors for the same handbook page work correctly (r58113 fixed the caching link and r58332 added the autoloaded options test).


For future edits to heading text in the handbook, I would prefer to keep the existing anchor (with the markdown syntax) if it is still appropriate.

Last edited 8 hours ago by sabernhardt (previous) (diff)
Note: See TracTickets for help on using tickets.