-
Notifications
You must be signed in to change notification settings - Fork 836
Custom post types: Ensure that adding theme support will also ensure they remain available #45407
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: trunk
Are you sure you want to change the base?
Custom post types: Ensure that adding theme support will also ensure they remain available #45407
Conversation
…also ensure they remain available
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 🤖 Follow this PR Review Process:
If you have questions about anything, reach out in #jetpack-developers for guidance! Jetpack plugin: No scheduled milestone found for this plugin. If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. Mu Wpcom plugin:
If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. Wpcomsh plugin:
If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. Classic Theme helper plugin plugin: No scheduled milestone found for this plugin. If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. |
Code Coverage SummaryCoverage changed in 2 files.
Full summary · PHP report · JS report If appropriate, add one of these labels to override the failing coverage check:
Covered by non-unit tests
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested 👍
Fixes VULCAN-309
Proposed changes:
add_theme_support( 'jetpack-testimonial')
for example), the feature behaves as if it is available, as well as enabled, preventing issues on block themes when disabling the feature. It also ensures that if post types are not registered, we don't attempt to continue with testimonial or portfolio setup steps.orderby
array key being undefined in some cases.In more detail:
Other information:
Jetpack product discussion
p1759778364516359-slack-C05PV073SG3
Does this pull request change what data or activity we track or use?
No.
Testing instructions:
To replicate the 'orderby' warnings:
[jetpack_testimonials orderby="modified"]
.To test the fix:
Ensure that on WoA / Simple sites, the theme activation / deactivation flow with different themes adding support is as expected as well. On Simple, Settings > Writing is where you'll find the toggles.