Codeinwp / otter-blocks

Create beautiful and attracting posts, pages, and landing pages with Gutenberg Blocks and Template Library by Otter.
https://wordpress.org/plugins/otter-blocks/
GNU General Public License v3.0
128 stars 33 forks source link

fix: decode entities for post block category #2235

Closed Soare-Robert-Daniel closed 1 week ago

Soare-Robert-Daniel commented 1 week ago

Closes https://github.com/Codeinwp/otter-blocks/issues/2183

Summary

Added a decoder for the entities in the categories.

The Gutenberg API sends encoded entities when requesting categories. So Click & Go becomes Click &Amp Go. Construction like Click&Go or Click& are unaffected; only isolated & are encoded.

Screenshots

Before

escaping-problem

After

image


Test instructions

  1. Create a category named Click & GO.
  2. Attach it to some posts.
  3. Make a new post, insert the Post block, and filter by this category.

Checklist before the final review

pirate-bot commented 1 week ago

Bundle Size Diff

Package Old Size New Size Diff
Animations 239.1 KB 239.1 KB 0 B (0.00%)
Blocks 1.5 MB 1.5 MB 10 B (0.00%)
CSS 93.17 KB 93.17 KB 0 B (0.00%)
Dashboard 201.53 KB 201.53 KB 0 B (0.00%)
Onboarding 154.18 KB 154.18 KB 0 B (0.00%)
Export Import 90.95 KB 90.95 KB 0 B (0.00%)
Pro 355.91 KB 355.91 KB 0 B (0.00%)
pirate-bot commented 1 week ago

Plugin build for 2d24bfbd2be58608365d7afafb7c0462400bcd1f is ready :bellhop_bell:!

pirate-bot commented 1 week ago

E2E Tests

Playwright Test Status:

Performance Results serverResponse: 223, firstPaint: 148.7, domContentLoaded: 1606.45, loaded: 1607.1, firstContentfulPaint: 3782.55, firstBlock: 5648.1, type: 13.77, minType: 11.9, maxType: 17.1, typeContainer: 8, minTypeContainer: 6.91, maxTypeContainer: 10.46, focus: 44.69, minFocus: 38.17, maxFocus: 57.44, inserterOpen: 29.55, minInserterOpen: 25.91, maxInserterOpen: 42.7, inserterSearch: 6.92, minInserterSearch: 6.3, maxInserterSearch: 8.09, inserterHover: 4.25, minInserterHover: 3.53, maxInserterHover: 6.78, listViewOpen: 152.77, minListViewOpen: 135.47, maxListViewOpen: 170.69