-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Media & Text block: wide alignment is not being passed to render_block
filter
#16365
Comments
Hi @webmandesign, thank you for reporting this issue. The issue is happening because wide align is the default align attribute for media & text bloc. The problem is common to all default attributes in every block. |
Thanks for the info @jorgefilipecosta |
The long term idea is to register all core blocks on the server using |
Hi @webmandesign I am not able to reproduce this with WP 6.2.2 and Gutenberg trunk, is this still an issue? |
Hi @carolinan I guess this is resolved now after those years ;) You can close the issue. |
Describe the bug
Looking at the block attributes passed to
render_block
filter, thealign
attribute is not set even if the wide alignment is chosen in the editor for Media & Text block.Maybe caused by wide alignment being a default value for Media & Text block?
To reproduce
Steps to reproduce the behavior:
$block
parameter ofrender_block
filter (in front-end). You can see there is noalign
attribute under$block['attrs']
.Expected behavior
Alignment value should be passed to
render_block
filter even if the block uses a specific alignment value by default. (Actually, all default values of block attributes should be passed intorender_block
filter.)Additional context
The text was updated successfully, but these errors were encountered: