Media & text: filter render_block
missing link attributes (href, rel and classes)
#30718
Labels
[Block] Media & Text
Affects the Media & Text Block
Needs Technical Feedback
Needs testing from a developer perspective.
[Type] Enhancement
A suggestion for improvement.
Description
The attributes passed to filter
render_block
forcore/media-text
block are missing the link attributes if it is inserted.Step-by-step reproduction instructions
Add a media-text block, then insert a link through the toolbar, modify or not the options.
Use the
render_block
filter to see the block arguments.Actual behaviour
Using
render_block
the only new attribute available, if you inserted a link, is["linkDestination"] => (string) "custom"
Expected behaviour
To have access to all link "arguments", the real href link, the rel attribute and the classes if they are defined.
maybe something like this:
WordPress information
The text was updated successfully, but these errors were encountered: