Repository navigation
Fixing duplicated wp-block classes in block-list - #24466
Conversation
…eady done in block.js
talldan
left a comment
There was a problem hiding this comment.
Thanks so much for picking this up @aktasfatih, the fix looks good to me.
I tested with a variety of blocks, couldn't spot any issues, and the wp-block classname was deduplicated.
Congrats on your first contribution 🎉
|
Congratulations on your first merged pull request, @aktasfatih! We'd like to credit you for your contribution in the post announcing the next WordPress release, but we can't find a WordPress.org profile associated with your GitHub account. When you have a moment, visit the following URL and click "link your GitHub account" under "GitHub Username" to link your accounts: https://profiles.wordpress.org/me/profile/edit/ And if you don't have a WordPress.org account, you can create one on this page: https://login.wordpress.org/register Kudos! |
Description
Note: This is my first PR.
Fixes issue #24367
I removed the isAlign check for block-wrapper.js of block-list in block-editor. This check is already done in block.js. Doing it again causes the wp-block class to show up twice in the block-list.
How has this been tested?
I tested it on Firefox in Ubuntu to see if anything was broken.
I added some blocks in the editor. I couldn't find anything that was misaligned or didn't show up. All the blocks in the block-list had one
wp-blockclass. No more duplicatedwp-blockclasses.Then, I ran the
npm run testscript. I didn't get any errors.Types of changes
Checklist: