Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #132839
    Rodrigo Barriuso
    Participant

    Every time I modify any piece of code, blocks get corrupted. I’ve read a bit about validation issues, but I don’t get it.
    What is the way to make changes in the block code without the current blocks in production becoming useless? How does the WP team upgrade the official blocks and the when update WP we still can use the blocks (and the data)?

    R

    #132937
    Zac Gordon
    Keymaster

    Hi!

    Great question. To do this the official way you would use the deprecated property explained in the docs here – https://developer.wordpress.org/block-editor/developers/block-api/block-deprecation/

    We will be covering this in an updated version of the course coming soon.

    The other approach is to make all your blocks dynamic with PHP.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.