Skip to content
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

Text Columns block: change title/description to include deprecation notice. #9358

Merged
merged 1 commit into from
Aug 27, 2018
Merged

Text Columns block: change title/description to include deprecation notice. #9358

merged 1 commit into from
Aug 27, 2018

Conversation

ZebulanStanphill
Copy link
Member

@ZebulanStanphill ZebulanStanphill commented Aug 26, 2018

Description

This is a minor change which makes it more obvious for the average user to see that the Text Columns block is deprecated. Previously, warnings were only shown in the JavaScript console. This PR adds (deprecated) to the block title and changes the description to recommend usage of the Columns block instead. This should make it more obvious that the block is deprecated.

Additional notes

I wanted to also add the ability to transform a Text Columns block into a Columns block, but that is a much trickier task, so I am not doing it in this PR. If anyone with more experience wants to do that, then please do. I have created a separate PR for that: #9364. I think providing one-way transforms from deprecated blocks to their recommended replacements/closest-equivalents is a good idea for smooth transitions.

Ideally, you would want to automatically transform deprecated blocks into the recommended replacements, but the deprecated blocks API does not currently support migrating from/to a completely different block.

Related issues and PRs

Copy link
Member

@ajitbohra ajitbohra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@ZebulanStanphill
Copy link
Member Author

I just created a PR for adding the Text Columns → Columns transform: #9364.

@youknowriad youknowriad merged commit 42b0666 into WordPress:master Aug 27, 2018
@ZebulanStanphill ZebulanStanphill deleted the update/make-text-columns-deprecation-more-obvious branch August 27, 2018 14:47
@ZebulanStanphill
Copy link
Member Author

@youknowriad This needs to be added to the 3.7 milestone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants