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 | 0 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 33b4b381484cf78a1e91b9fb3684ff1f6dabf773 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 #2191
Summary
Because the function
render_blocks
for block conditions could not return anything, an error is raised because the filterrender_block
must return a string.I refactored the function so that it always returns a string. Also, change from
add_action
toadd_filter
sincerender_block
exists as a filter, and with the new phpdoc added to the function, phpstan does not allow us to use theadd_action
since we are always returning something.Test instructions
Checklist before the final review