Add docs for variations key in theme.json#49826
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
|
Today I have had more time to test whether it works with block style variations added from themes and plugins.
When testing variations in theme.json with the theme-registered custom styles, I even get PHP warnings. The PHP warnings and the limitation is not relevant for this PR other than making sure that the documentation explains that only core block style variations work. |
|
Thanks @carolinan for the context. I pushed 1f2098d for clarification and tested that block variations defined via |
|
@carolinan I almost forgot to mention that #49807 will fix the error for Gutenberg when an unregistered style variation is used in the |
Follow-up to #46343
What?
This PR adds docs for the
variationskey added totheme.jsonin WordPress 6.2.Why?
We should aim to document every aspect of the
theme.jsonspecification, so it's clear to extenders.How?
By adding the respective section to the
theme.jsonhow-to docs.Testing
Inspect the new section and proofread.
Read it as part of the whole document.