render_block_data
hook maybe conflicting with global styles
#61769
Labels
[Feature] Block API
API that allows to express the block paradigm.
Needs Testing
Needs further testing to be confirmed.
[Type] Bug
An existing feature does not function as intended
Description
We've a plugin that basically depends on "render_block_data" hook to check if a block is nested (or not) on the frontend for some of the plugin logic.
After applying this particular filter (and appending some value to the
parsed_block
) the existing list color is completely overwritten with the global link colors.Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
Code snippet
We're using the following work-around since there's no official way in the API (there's an open issue for this here) to access the parent block in the block renderer (as far as i know).
List Layout
Environment info
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: