-
Notifications
You must be signed in to change notification settings - Fork 800
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
WordPress 6.7 compatibility: Add __nextHasNoMarginBottom to controls to prevent deprecation notices #39877
WordPress 6.7 compatibility: Add __nextHasNoMarginBottom to controls to prevent deprecation notices #39877
Conversation
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 🤖 The e2e test report can be found here. Please note that it can take a few minutes after the e2e tests checks are complete for the report to be available. Follow this PR Review Process:
Still unsure? Reach out in #jetpack-developers for guidance! Jetpack plugin: The Jetpack plugin has different release cadences depending on the platform:
If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. Boost plugin:
If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. Social plugin:
If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. Protect plugin:
If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. |
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 following the PR instructions and I didn't notice any styling issues with the suggested components. The relevant deprecation notices in the browser console were also gone 👍
Fixes #39823
Proposed changes:
__nextHasNoMarginBottom={ true }
to multiple BaseControl-based components, to prevent deprecation notices (more context about these here, and the changes generally). As much as possible, the addition of this prop has been tested for each change. The intention here is to cleanup as many of the notices as possible prior to the next release - not all are covered:DetailsControl
),LikeEdit
component for Like block on Simple (as it only affects Simple), among a few others).ToggleControl
related, where all other tested examples had needed the addition. Examples includevisibilityAdvancedControls
related to the Widget Visibility module.jetpack-mu-wpcom
package, partially due to testing issues (eg. Newspack related blocks), and also due to releases on WoA being more frequent should anything obvious be spotted otherwise.ToggleControl
from@automattic/jetpack-components
does not need changing, as the Jetpack component has the prop added.Other information:
Jetpack product discussion
#39823
Does this pull request change what data or activity we track or use?
No.
Testing instructions:
Self-hosted site test instructions
To replicate the issue:
define( 'SCRIPT_DEBUG', true );
inwp-config.php
.To test the changes: