Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Post preview when using Gutenberg does not display changes when Yoast is active. #11923

Closed
4 of 9 tasks
rmarcano opened this issue Dec 27, 2018 · 8 comments
Closed
4 of 9 tasks

Comments

@rmarcano
Copy link

rmarcano commented Dec 27, 2018

  • I've read and understood the contribution guidelines.
  • I've searched for any related issues and avoided creating a duplicate issue.

Please give us a description of what happened.

When using the Gutenberg editor, any changes made to the content after publishing the post the first time are not displayed in the post preview.

Please describe what you expected to happen and why.

I expected any changes made to the post to be displayed when clicking the "Preview" button, without having to publish the post first.

How can we reproduce this behavior?

1.While the Yoast SEO plugin is active, create a new post with content. Click "Preview" to see the changes without publishing. The changes should be displayed.
2.Publish the post.
3.Make changes to the post content, like adding a new paragraph. Click "Preview" again without publishing. Changes will not be displayed. Only publishing the post will display any subsequent changes.

Deactivate the Yoast SEO plugin and repeat the steps above. Changes should always be displayed in the preview without having to publish the post.

Technical info

  • If relevant, which editor is affected (or editors):
  • Classic Editor
  • Gutenberg
  • Classic Editor plugin
  • Which browser is affected (or browsers):
  • Chrome
  • Firefox
  • Safari
  • Other

Used versions

  • WordPress version: 5.0.2
  • Yoast SEO version: 9.3
  • Tested with theme: TwentySeventeen.
@klemensz
Copy link

klemensz commented Jan 6, 2019

I'm having the same issue (with the Parabola theme).

@Vixxd
Copy link

Vixxd commented Jan 6, 2019

Same issue with my own theme based off Skeleton.css and Naked Wordpress.

@designsimply
Copy link

designsimply commented Jan 7, 2019

Tested and confirmed using WordPress 5.0.2 and Yoast SEO 9.3 that I cannot preview changes made to existing posts when Yoast is active but preview works normally if I deactivate Yoast.

Video: 1m41s
Tested with WordPress 5.0.2 and Yoast SEO 9.3 using Firefox 63.0.3 on macOS 10.13.6.

@designsimply
Copy link

I tested this again with WordPress 5.0.3 and Yoast SEO 9.4 and the problem persists.

  1. Go to Plugins and install or update to Yoast SEO 9.4.
  2. Go to Posts and open any published post.
  3. Make any edit to the post.
  4. Click the "Preview" button and check to see if the edit appears in the preview.

Result: previews of edits made to published posts do not appear if Yoast SEO 9.4 is installed and activated. (53s)

@IreneStr
Copy link
Contributor

Closing because this seems to be a bug on the WP/GB side. See: WordPress/gutenberg#12617 (comment)

@hughiemolloy
Copy link

For everyone's reference in WP Release 5.5 they have changed the preview to show Gutenberg updates but not meta field updates. Currently it is the opposite.

@IreneStr
Copy link
Contributor

@hughiemolloy Thanks for letting us know! Could you maybe post the related Gutenberg PR/commit here? And can you give more context about what it means exactly for metafields?

@hughiemolloy
Copy link

When using Gutenberg autosaving does two saves, one for the Gutenberg editor and one for the metafields. The metafields used to happen second. They have switched the order. The problem is when saving the metafields they have the old post content. And as they are saved second the preview show the second, later, autosave and acts like the editor was not updated.

This is the merged PR: WordPress/gutenberg#14877

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

No branches or pull requests

9 participants