Fix Gutenberg Gradient Class Naming Change Causing Block Validation Failure
Encountered this issue while developing a WordPress FSE theme for a client. Here's the root cause and solution.
TL;DR
After a Gutenberg upgrade, the gradient CSS class naming convention changed from has-{slug}-gradient to has-{slug}-gradient-background. Hand-written Pattern HTML with old classes doesn't match Gutenberg's validation logic, causing Site Editor errors. The fix is to batch replace class names.