Stackable icon indicating copy to clipboard operation
Stackable copied to clipboard

Sunset Block Defaults

Open bfintal opened this issue 7 months ago • 0 comments

Sunset Stackable Settings > Block Defaults

  • Add a new option in Settings > Miscellaneous:
    • Title: "Block Defaults (Deprecated)"
    • Description: Default state of blocks were previously allowed to be saved. This functionality has since been deprecated, and sunsetted in the future in replacement of the new Stackable Design System.
  • This new option should be disabled by default
  • If after upgrading, the user has some existing block defaults saved in the database, then this option should be enabled. Otherwise, leave it disabled.

When disabled

  • The Block Defaults panel will no longer be available
  • The code that adds "default/saved" attributes from Block defaults should be no longer be applicable

Implementation Notes

  • Separate ALL the code that has to do with Block Default into a new folder in src/deprecated/block-defaults - these should only be loaded when the option is enabled (we can check against get_option() before doing a require once)

bfintal avatar May 25 '25 04:05 bfintal