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

Core blocks: Use core-blocks prefix for class names #6684

Merged
merged 1 commit into from
May 11, 2018

Conversation

gziolo
Copy link
Member

@gziolo gziolo commented May 10, 2018

Description

We forgot to update a few class names to match the pattern when moving core blocks to its own module. This PR fixes it.

I skipped two class names:

  • .blocks-gallery-item - it would require a deprecation logic to be added
  • .blocks-gallery-image - this is already used in deprecation logic

How has this been tested?

Manually.

Types of changes

No visual changes.

Checklist:

  • My code is tested.
  • My code follows the WordPress code style.
  • My code follows the accessibility standards.
  • My code has proper inline documentation.

@gziolo gziolo added the [Feature] Blocks Overall functionality of blocks label May 10, 2018
@gziolo gziolo added this to the 2.9 milestone May 10, 2018
@gziolo gziolo self-assigned this May 10, 2018
@gziolo gziolo requested review from youknowriad and a team May 10, 2018 12:27
@gziolo gziolo force-pushed the update/core-blocks-class-name branch from 956cb8f to d2bdd6d Compare May 10, 2018 12:28
Copy link
Member

@jorgefilipecosta jorgefilipecosta left a comment

Choose a reason for hiding this comment

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

Things looked fine in my tests and doing some grepping also did not caught any problem.
It was nice that during this changed we managed to catch existing problems like blocks-base-control and blocks-more-right-marker 👍
Regarind the existing remaining classes .blocks-gallery-item and .blocks-gallery-image I think we may be able to get away chanhing them as I think classes are not used when validating blocks.

@gziolo
Copy link
Member Author

gziolo commented May 11, 2018

Regarind the existing remaining classes .blocks-gallery-item and .blocks-gallery-image I think we may be able to get away chanhing them as I think classes are not used when validating blocks.

They aren't used for validation, but it would break parsing if I understand it properly.

@gziolo gziolo merged commit 5f5ae54 into master May 11, 2018
@gziolo gziolo deleted the update/core-blocks-class-name branch May 11, 2018 07:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Blocks Overall functionality of blocks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants