Closed Soare-Robert-Daniel closed 2 months ago
Package | Old Size | New Size | Diff |
---|---|---|---|
Animations | 239.1 KB | 239.1 KB | 0 B (0.00%) |
Blocks | 1.5 MB | 1.5 MB | 7 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%) |
Plugin build for 76110fb243719a81624e9f45dc51fd9bbe1a0a61 is ready :bellhop_bell:!
Playwright Test Status:
:tada: This PR is included in version 2.6.11 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:
Closes #2193
Summary
Each pattern has an Upsell Notice embedded. If there are multiple notices, they are removed except the first one.
The condition that checked if the block is rendered inside the editor was using
document.querySelected
and evaluated before the rendering, thus making it to be always false.By moving the check inside the
effect
, we fix this problem since the hook runs after the component is rendered on the page.Screenshots
https://github.com/Codeinwp/otter-blocks/assets/17597852/3c7de8dd-1ad9-4f78-9f38-f4b89162a7c2
Test instructions
Checklist before the final review