Skip to content
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

Fix: Don't register dataviews postype and taxonomy if experiment is disabled. #55743

Conversation

jorgefilipecosta
Copy link
Member

This pull request addresses the problem of dataviews posttype and taxonomy being registered even when the experiment is not enabled.

Testing

To test the fix, you can temporarily change 'show_ui' to true on the post type and taxonomy. Then, verify that the dataviews menu item appears when the dataviews experiment is enabled and disappears when it is disabled.

@jorgefilipecosta jorgefilipecosta added the [Type] Bug An existing feature does not function as intended label Oct 31, 2023
Copy link

This pull request has changed or added PHP files. Please confirm whether these changes need to be synced to WordPress Core, and therefore featured in the next release of WordPress.

If so, it is recommended to create a new Trac ticket and submit a pull request to the WordPress Core Github repository soon after this pull request is merged.

If you're unsure, you can always ask for help in the #core-editor channel in WordPress Slack.

Thank you! ❤️

View changed files
❔ lib/experimental/data-views.php

@jorgefilipecosta jorgefilipecosta merged commit 32aee0e into trunk Oct 31, 2023
@jorgefilipecosta jorgefilipecosta deleted the fix/Dont-register-dataviews-postype-and-taxonomy-if-experiment-is-not-enable branch October 31, 2023 18:48
@github-actions github-actions bot added this to the Gutenberg 17.0 milestone Oct 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Bug An existing feature does not function as intended
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant