Skip to content

Settings: open the remaining support links as WordPress.com docs in the Help Center on Dotcom sites - #52560

Merged
heavyweight merged 2 commits into
trunkfrom
update/dotsup-528-jetpack-settings-inline-support-links
Sep 22, 2026
Merged

heavyweight merged 2 commits into
trunkfrom
update/dotsup-528-jetpack-settings-inline-support-links

Conversation

@heavyweight

Copy link
Copy Markdown
Contributor

Follow-up to #52436, which made the "Learn more" links in the Settings info popovers open WordPress.com support docs in the Help Center on WordPress.com sites. Several inline support links in the settings cards still pointed at jetpack.com (or akismet.com) on those sites.

Proposed changes

  • New _inc/client/components/support-link helper with the same rule as SupportInfo: on WordPress.com (Simple/Atomic) sites, SupportLink renders WpcomSupportLink so the doc opens inside the Help Center; everywhere else it opens the Jetpack doc in a new tab. getSupportUrl() / openWpcomSupportDoc() do the same for non-link elements such as Card CTAs. Unit tests included.
  • Converted links:
    • Security → Anti-spam: info popover linked to akismet.com; now wordpress.com/support/protect-from-spam/ on WordPress.com sites.
    • Traffic → Related Posts: the inline "related posts added using the block editor" link and the block-theme "Add a Related Posts Block…" card → wordpress.com/support/related-posts/.
    • Traffic → Jetpack Stats: the "Learn More" shown while Stats is inactive → wordpress.com/support/stats/.
    • Traffic → Site Verification: the "full instructions" link → wordpress.com/support/site-verification-services/.
    • Traffic → Google Analytics: "Learn more to find your Measurement ID" → wordpress.com/support/google-analytics/#get-your-measurement-id. The existing redirect's anchor (#step-2-get-your-measurement-id) does not exist on that doc; #get-your-measurement-id does, and the Help Center scrolls to it.
    • Monetize → Collect PayPal payments: the CTA card → wordpress.com/support/wordpress-editor/blocks/pay-with-paypal/.

Left unchanged on purpose: Backup, Scan, Search, Carousel, Jetpack Blocks and Blaze popovers (no WordPress.com doc specified), the SSO "two-step enforced" note, the Google Analytics "Anonymize IP" link (points at Google's own help), and "Enable targeted advertising".

Related product discussion/links

Does this pull request change what data or activity we track or use?

No. Existing recordJetpackClick tracking on the converted Card CTAs is preserved.

Testing instructions

WordPress.com (Atomic)

  1. Run this branch on an Atomic site (Jetpack Beta, or jetpack rsync).
  2. Go to Jetpack → Settings and check each link opens the matching wordpress.com/support article inside the Help Center, not a new tab:
    • Security → Anti-spam → (i) → Learn more
    • Traffic → Related Posts → "related posts added using the block editor" (and, on a block theme, the "Add a Related Posts Block…" card)
    • Traffic → Jetpack Stats → with Stats turned off, "Learn More"
    • Traffic → Google Analytics → "Learn more to find your Measurement ID" (the Help Center should scroll to the Measurement ID step)
    • Traffic → Site verification → "full instructions"
    • Monetize → Collect PayPal payments → "Learn how to get started"

Self-hosted Jetpack

  1. On a connected non-WordPress.com site, the same links still open the jetpack.com (or akismet.com) docs in a new tab, unchanged.

Verified on an Atomic site for all links except the two that need Stats off / a block theme, which are covered by the unit tests.

🤖 Generated with Claude Code

…he Help Center on Dotcom sites

Follow-up to #52436, which covered the info popovers. The inline support
links in the settings cards still pointed at jetpack.com (or akismet.com)
on WordPress.com sites. Add a small `components/support-link` helper
(`SupportLink`, `getSupportUrl`, `openWpcomSupportDoc`) with the same
rule as `SupportInfo`: WordPress.com sites get the WordPress.com doc in
the Help Center, self-hosted sites keep the Jetpack doc in a new tab.

- Anti-spam: popover linked to akismet.com; add the WordPress.com doc.
- Related Posts: inline "block editor" link and the block-theme card.
- Stats: "Learn More" shown while Stats is inactive.
- Site Verification: "full instructions" link.
- Google Analytics: "find your Measurement ID" link. The old redirect
  anchor (#step-2-…) does not exist on the doc; use #get-your-measurement-id.
- Earn: the PayPal CTA card.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor

Are you an Automattician? Please test your changes on all WordPress.com environments to help mitigate accidental explosions.

  • To test on WoA, go to the Plugins menu on a WoA dev site. Click on the "Upload" button and follow the upgrade flow to be able to upload, install, and activate the Jetpack Beta plugin. Once the plugin is active, go to Jetpack > Jetpack Beta, select your plugin (Jetpack), and enable the update/dotsup-528-jetpack-settings-inline-support-links branch.
  • To test on Simple, run the following command on your sandbox:
bin/jetpack-downloader test jetpack update/dotsup-528-jetpack-settings-inline-support-links

Interested in more tips and information?

  • In your local development environment, use the jetpack rsync command to sync your changes to a WoA dev blog.
  • Read more about our development workflow here: PCYsg-eg0-p2
  • Figure out when your changes will be shipped to customers here: PCYsg-eg5-p2

@github-actions github-actions Bot added [Plugin] Jetpack Issues about the Jetpack plugin. https://wordpress.org/plugins/jetpack/ [Status] In Progress [Tests] Includes Tests Admin Page React-powered dashboard under the Jetpack menu labels Sep 21, 2026
@github-actions

github-actions Bot commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor

Thank you for your PR!

When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:

  • ✅ Include a description of your PR changes.
  • ✅ Add a "[Status]" label (In Progress, Needs Review, ...).
  • ✅ Add testing instructions.
  • ✅ Specify whether this PR includes any changes to data or privacy.
  • ✅ Add changelog entries to affected projects

This comment will be updated as you work on your PR and make changes. If you think that some of those checks are not needed for your PR, please explain why you think so. Thanks for cooperation 🤖


Follow this PR Review Process:

  1. Ensure all required checks appearing at the bottom of this PR are passing.
  2. Make sure to test your changes on all platforms that it applies to. You're responsible for the quality of the code you ship.
  3. You can use GitHub's Reviewers functionality to request a review.
  4. When it's reviewed and merged, you will be pinged in Slack to deploy the changes to WordPress.com simple once the build is done.

If you have questions about anything, reach out in #jetpack-developers for guidance!


Jetpack plugin:

The Jetpack plugin has different release cadences depending on the platform:

  • WordPress.com Simple releases happen as soon as you deploy your changes after merging this PR (PCYsg-Jjm-p2).
  • WoA releases happen weekly.
  • Releases to self-hosted sites happen monthly:
    • Scheduled release: October 6, 2026

If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack.

@github-actions github-actions Bot added the [Status] Needs Author Reply We need more details from you. This label will be auto-added until the PR meets all requirements. label Sep 21, 2026
@jp-launch-control

jp-launch-control Bot commented Sep 21, 2026 •

Copy link
Copy Markdown

Code Coverage Summary

Coverage changed in 4 files.

File Coverage Δ% Δ Uncovered
projects/plugins/jetpack/_inc/client/components/textarea/index.jsx 1/2 (50.00%) 50.00% -1 💚
projects/plugins/jetpack/_inc/client/earn/ads.jsx 1/29 (3.45%) 3.45% -1 💚
projects/plugins/jetpack/_inc/client/earn/index.jsx 5/23 (21.74%) 21.74% -4 💚
projects/plugins/jetpack/_inc/client/traffic/related-posts.jsx 15/22 (68.18%) 68.18% -11 💚

1 file is newly checked for coverage.

File Coverage
projects/plugins/jetpack/_inc/client/components/support-link/index.jsx 11/11 (100.00%) 💚

Full summary · PHP report · JS report

Cover the new support-doc branches in `RelatedPostsComponent` and
`EarnFeatureButton` (exported for testing) for the coverage check.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@heavyweight
heavyweight marked this pull request as ready for review September 22, 2026 15:54
@heavyweight
heavyweight merged commit 701576f into trunk Sep 22, 2026
80 checks passed
@heavyweight
heavyweight deleted the update/dotsup-528-jetpack-settings-inline-support-links branch September 22, 2026 15:54
@github-actions github-actions Bot removed [Status] In Progress [Status] Needs Author Reply We need more details from you. This label will be auto-added until the PR meets all requirements. labels Sep 22, 2026
@github-actions github-actions Bot added this to the jetpack/16.3 milestone Sep 22, 2026
@github-actions github-actions Bot added the [Status] UI Changes Add this to PRs that change the UI so documentation can be updated. label Sep 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Admin Page React-powered dashboard under the Jetpack menu [Plugin] Jetpack Issues about the Jetpack plugin. https://wordpress.org/plugins/jetpack/ [Status] UI Changes Add this to PRs that change the UI so documentation can be updated. [Tests] Includes Tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant