After updating to WordPress 6.4, the Button block in our theme is not applying alignment CSS classes correctly. This issue seems to stem from the removal of certain render_block filters, specifically wp_render_layout_support_flag, which are essential for proper block layout and styling in WordPress.
Expected Behavior
Button blocks should correctly apply alignment classes like wp-block-buttons-is-layout-flex.
Steps to Reproduce
Update a WordPress installation to 6.4 (without Gutenberg plugin installed)
Add a Button block.
Observe the missing alignment CSS classes.
Proposed Solution
We need to investigate the impact of the wp_render_layout_support_flag removal and explore solutions. This might include re-enabling this filter or implementing a custom solution for handling the Button block's layout and styles.
Description
After updating to WordPress 6.4, the Button block in our theme is not applying alignment CSS classes correctly. This issue seems to stem from the removal of certain
render_block
filters, specificallywp_render_layout_support_flag
, which are essential for proper block layout and styling in WordPress.Expected Behavior
Button blocks should correctly apply alignment classes like
wp-block-buttons-is-layout-flex
.Steps to Reproduce
Proposed Solution
We need to investigate the impact of the
wp_render_layout_support_flag
removal and explore solutions. This might include re-enabling this filter or implementing a custom solution for handling the Button block's layout and styles.