Repository navigation
Update docs for custom spacing - #26859
Merged
Merged
Conversation
oandregal
requested review from
ajitbohra,
chrisvanpatten and
mkaz
as code owners
November 10, 2020 16:41
|
Size Change: 0 B Total Size: 1.21 MB ℹ️ View Unchanged
|
youknowriad
reviewed
Nov 12, 2020
| Using the Gutenberg plugin (version 8.3 or later), some blocks can provide padding controls in the editor for users. This is off by default, and requires the theme to opt in by declaring support: | ||
|
|
||
| ```php | ||
| add_theme_support('custom-spacing'); |
Contributor
There was a problem hiding this comment.
This makes me wonder why the Gutenberg plugin is needed? Did we just miss backporting this theme support flag?
Member
Author
There was a problem hiding this comment.
Not sure about why (the timing, another context that I'm missing) but we didn't port it https://github.com/WordPress/wordpress-develop/blob/master/src/wp-admin/edit-form-blocks.php#L144
Contributor
There was a problem hiding this comment.
Ok, can we create a trac ticket for that and targetted for 5.7?
Member
Author
There was a problem hiding this comment.
https://core.trac.wordpress.org/ticket/51760#ticket I don't think I can assign the 5.7 milestone but marked the version as trunk.
youknowriad
approved these changes
Nov 12, 2020
4 of 7 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
In #25788 we made
custom-spacingstable. However, it didn't make it to WordPress 5.6, so it still requires the plugin to work. This PR adds a note about that.See also this conversation.