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.
Description
Removed the Subheading block.
Fixes #9308 and closes #5475, #8141, #8234, and #8716.
How has this been tested?
Ran packaged version of my branch and tested it. Subheading blocks became Classic blocks, and there were no apparent errors anywhere.
Screenshots
(Ignore the extra buttons on the Classic block; those are added by Divi.)
Types of changes
This change is currently entirely file deletions and line removals of everything related to the Subheading (
core/subhead
) block.Known issues
Using the Convert to Blocks option does not convert the content of the Classic blocks to Paragraph blocks. This seems to be due to the HTML comments; removing them makes the conversion work just fine. This same issue is occurring in #8821. It may be desirable to avoid merging both PRs until the solution to this issue is found.
Additionally, I noticed that even after removing the comments, there were still some issues with the conversion to a Paragraph block:
wp-block-subhead
class was not preserved and put in the Additional CSS Class field.text-align
attribute on the<p>
element was not preserved.These seem to be issues with conversions from the Classic block in general, however. I think this is just another case of #6102. See also: #6878 and #7604.
I am not sure how many of these issues would be considered blockers. The
text-align
issue would be easily fixed by users by just setting the text alignment again, and I am doubtful that thewp-block-subhead
class is being used enough to be that important about preserving in conversions. The HTML comment issue seems to be the biggest problem.Related issues and PRs