-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Background images: remove required "file" prop #61387
Conversation
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. |
Size Change: -22 B (0%) Total Size: 1.74 MB
ℹ️ View Unchanged
|
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.
Thanks for the follow-up! For completeness-sake, and to carry on some of the conversations on related PRs, I like the idea of the explicit source
key, but I'm very much in favour of defaulting to an implicit source of file
(or url), and deferring optionally including the source key in follow-ups when needed.
For now, I think this approach will make it much simpler for folks building out theme.json
files manually 👍
Testing well, and the code change LGTM! 🎉
Just noticed this has the |
Oh, I got excited, an expected 6.6 to be prepped already. Removed 😆 |
* Follow up to #61387 - I missed a source prop Co-authored-by: ramonjd <ramonopoly@git.wordpress.org> Co-authored-by: andrewserong <andrewserong@git.wordpress.org>
Part of
What?
Removes the required "file" prop from background block supports.
Related:
Why?
"File" described a path to an image file. This should be the default so theme developers don't need to add the prop to use images in theme.json
Testing Instructions
There should be no regressions.
Here is some test HTML!