Skip to content
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

EX-1142 fix access of null offset error and add validation on columns of last row #20

Merged
merged 6 commits into from
Jul 10, 2024

Conversation

i-am-chitti
Copy link
Member

This PR does following -

  1. Fixes the access of null offset - generated because of usage of get_block_wrapper_attributes on pre_render. It should be used on render hook.

Warning: Trying to access array offset on value of type null in /code/wp-includes/class-wp-block-supports.php on line 98

https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-includes/class-wp-block-supports.php#L98
https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-includes/class-wp-block.php#L515

It was not detected earlier as I was using a FSE theme which renders the content in "core/post-content" block by default. So, when we used it on simple classic theme, it started throwing error as we don't use register_block_type.

  1. Disable "Merge Column Down" on columns of last row

@i-am-chitti i-am-chitti self-assigned this Jul 9, 2024
@i-am-chitti i-am-chitti requested a review from junaidbhura July 9, 2024 18:47
@junaidbhura junaidbhura merged commit 33e9ac6 into master Jul 10, 2024
1 check passed
@junaidbhura junaidbhura deleted the fix/EX-1142-null-offset-access-block-supports branch July 10, 2024 00:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants