You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a block that basically functions as a background. So it creates a div that gets set with some options for background color and padding, and within it there is InnerBlocks.
Now, I'm trying to update this block with a new div to wrap the InnerBlocks that will have an optional container class.
Here's the error I'm getting in the editor when I load a page with the previous version of the block:
As I understand it, the save function in the deprecated object is how Wordpress figures out that the block should be migrated. What's odd to me is that the "Actual" in this error is exactly what should be getting output by the deprecated save function. But it seems like it's not matching on that save function's output.
I actually got this solved. I found this thread which explained the error I was receiving was the correct behavior for the when you have a new block version and load the page with the old block version on it, and it will fix itself after you update the page. I did experience a problem earlier where updating the page was breaking all of these blocks, but that seems to have been cleared up by tinkering with it.
If anyone knows of a good article or thread that explains or gives examples of deprecation, especially the migrate function, I'd love to see it. Thanks!
I have a block that basically functions as a background. So it creates a div that gets set with some options for background color and padding, and within it there is InnerBlocks.
Now, I'm trying to update this block with a new div to wrap the InnerBlocks that will have an optional
container
class.Here's the error I'm getting in the editor when I load a page with the previous version of the block:
As I understand it, the save function in the deprecated object is how Wordpress figures out that the block should be migrated. What's odd to me is that the "Actual" in this error is exactly what should be getting output by the deprecated save function. But it seems like it's not matching on that save function's output.
Here's the code I'm using:
Thank you for any help you can provide!
The text was updated successfully, but these errors were encountered: