classic-theme-helper: Add notice that Custom Content Types are primarily for classic themes#49104
classic-theme-helper: Add notice that Custom Content Types are primarily for classic themes#49104agent-sandbox-automattic[bot] wants to merge 1 commit into
Conversation
…ily for classic themes Adds an informational notice in Settings > Writing under "Your Custom Content Types" indicating that Portfolio and Testimonials features are primarily designed for classic themes, with a link to the support guide at jetpack.com/support/custom-content-types/. This addresses the case where users on block themes disable Portfolio (or Testimonials) without realizing the toggle may disappear from the Settings > Writing screen. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
Are you an Automattician? Please test your changes on all WordPress.com environments to help mitigate accidental explosions.
Interested in more tips and information?
|
|
Thank you for your PR! When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:
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 🤖 🔴 Action required: Please include detailed testing steps, explaining how to test your change, like so: 🔴 Action required: We would recommend that you add a section to the PR description to specify whether this PR includes any changes to data or privacy, like so: Follow this PR Review Process:
If you have questions about anything, reach out in #jetpack-developers for guidance! |
Code Coverage SummaryCoverage changed in 1 file.
Full summary · PHP report · JS report If appropriate, add one of these labels to override the failing coverage check:
Covered by non-unit tests
|
What
Adds an informational notice in Settings → Writing under the "Your Custom Content Types" section heading, explaining that Portfolio and Testimonials features are primarily designed for classic themes. The notice includes a link to the Jetpack support guide at https://jetpack.com/support/custom-content-types/.
Why
Users on block themes (e.g. Videomaker) were disabling Portfolio without realizing that doing so could also remove the toggle from Settings → Writing, making it appear the feature was gone entirely. This simple static notice aligns with the stakeholder's request to add descriptive text under the section heading clarifying the classic-theme nature of these features.
How
Modified
jetpack_cpt_section_callback()inprojects/packages/classic-theme-helper/src/custom-content-types.php:Redirect::get_url( 'jetpack-support-custom-content-types' )when theRedirectclass is available, with a direct URL fallbackwp_kses(),esc_url(), and__()with thejetpack-classic-theme-helpertext domainTest plan
🤖 Generated with Claude Code
Linear: DOTCOM-17145