-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Pages DataViews: Fix content preview field after global styles refactor #73140
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
Conversation
|
Size Change: -445 B (-0.02%) Total Size: 2.41 MB
ℹ️ View Unchanged
|
|
This fixed a bug I was seeing, thanks! There's no option to show the Featured image as the |
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
That was an unintended debugging change sorry I'll revert that part :) |
| * @param {string} path Style path (e.g., 'color.background') | ||
| * @param {string} blockName Optional block name | ||
| * @param {string} path Style path (e.g., 'color.background') | ||
| * @param {string=} blockName Optional block name |
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.
Tiniest of tiny nits: is this meant to be a ?? (Same with the doc comment for useSetting)
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.
Ah, ignore me, I just wasn't familiar with this syntax 😄
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.
no = is actually better because TS can understand that is optional. I think TS doesn't understand ?
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.
Good to know, thanks! TIL
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.
I wasn't able to switch to the content preview manually (possibly related to this comment: https://github.com/WordPress/gutenberg/pull/73064/files#r2511053514) so hard-coded it in locally to test. LGTM 👍
closes #73139
What?
Fix the content preview field on pages dataviews. useGlobalStyle hook has been removed and was still being used in a field.