What is the correct approach to implementing block deprecations in WordPress Gutenberg and what causes a block validation error?

WordPress Expert Hard

WordPress Expert — Hard

What is the correct approach to implementing block deprecations in WordPress Gutenberg and what causes a block validation error?

Key points

  • Block deprecations are stored in JavaScript under 'deprecated'
  • Validation error occurs when no deprecation matches
  • WordPress sequentially tries each deprecation's save()
  • Old attributes schema and save() function are included in deprecations

Ready to go further?

Related questions