Skip to content

Front-end markup doesn't update when Gutenberg updates #8015

Closed

Description

@maddisondesigns

Describe the bug
I had a test page that I had created months ago. On the page it had a Multi-Column block (among lots of others). Up until only recently, the Multi-Column block was using CSS Grid. Recently, this has now changed to use Flexbox and more importantly, the content for each column is contained within its own container/div.

Even though my Gutenberg plugin was up to date, when I viewed this page on the front-end, it was still using the old markup (i.e. The blocks for each column weren't in their own container/div). The markup only changed to the new format once the page was re-saved.

Hypothetically, what happens in say 5 years time, when some new css grid spec is all the rage and WP is updated to use this all-new fancy grid? Is my page that I created 5 year earlier, still going to use the old markup? Based on the what I just saw with my old page, it would. I shouldn't have to go back and re-save all my old pages so that the front-end markup updates.

Obviously the most logical answer is no, I wouldn't have to re-save my old pages. In that case though, why did I just have to resave my old page now before seeing the new markup? How is this going to be avoided once Gutenberg is in core?

Gutenberg 3.2.0

Activity

  1. GlennMartin1 commented on Jul 18, 2018

    @GlennMartin1

    Related: #7825

    Keep in mind that the Columns block is designated "beta," and as such it's reasonable that there may be breakage while in the beta period.

  2. added
    [Type] Question
    Backwards Compatibility
    on Jul 18, 2018
  3. added
    [Feature] Extensibility
    on Jul 18, 2018
  4. designsimply commented on Jul 18, 2018

    @designsimply
    Member

    Duplicate of #4849.

  5. f00d4tehg0dz commented on Jul 18, 2018

    @f00d4tehg0dz

    Further to that discussion @maddisondesigns What happens when you have that block on 1,000 of pages. How will you update the block. Are you going to sit there and press "update" on every 1,000 pages?
    @danielbachhuber is the intention to add this functionality to the extend api? I've personally hit a roadblock with not being able to update existing blocks with more functionality inside our save, return function.

  6. youknowriad commented on Feb 14, 2019

    @youknowriad
    Contributor

    Let consolidate all the block validation, deprecation, migration discussions in a single issue #13611 thanks.

  7. maddisondesigns commented on Feb 15, 2019

    @maddisondesigns
    Author

    @youknowriad

    Let consolidate all the block validation, deprecation, migration discussions in a single issue #13611

    #13611 is closed so it seem pretty pointless to add comments there. I presume you mean #7604

  8. youknowriad commented on Feb 15, 2019

    @youknowriad
    Contributor

    yes, sorry for the confusion, I discovered the existence of #7604 later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Backwards Compatibility[Feature] Extensibility[Type] Developer Documentation[Type] Question

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions