generateblocks icon indicating copy to clipboard operation
generateblocks copied to clipboard

Fix image block not using default values

Open JeanPaiva opened this issue 3 years ago • 1 comments

Description

Fix the image block not using default values

Steps to reproduce

  1. Use the PHP hook generateblocks_defaults
  2. Change any attribute from the image block

Expected behavior

On adding the block it should come with default styles

Actual behavior

The block does have the new default applied

References:

https://edge22studios.slack.com/archives/C022YLCJXHS/p1657832885522419

JeanPaiva avatar Jul 14 '22 21:07 JeanPaiva

I think we need to think about whether or not we want filterable defaults. Seems to cause more issues than it solves a lot of the time. Going to punt this to 1.6.0.

tomusborne avatar Aug 15 '22 20:08 tomusborne