rtCamp / wordpress-preview-revisions

WordPress Preview Revisions Plugin help editors to preview the revisions with exact same content that would look like on the frontend.
Other
9 stars 1 forks source link

Preview not working properly when using Elementor #8

Open davelavoie opened 2 weeks ago

davelavoie commented 2 weeks ago

Hi! Nice idea of plugin!

I tested it, and found out that when previewing a revision, pages built with Elementor won't display properly in the preview.

Step to reproduce:

  1. Install and activate Elementor
  2. Create a page with some widgets (or even better, import one of the available templates)
  3. Save the page
  4. Make more changes and save the page again in order to trigger a revision.
  5. In the back-end, try to preview a previous revision. You'll see that the previewed page isn't taking all Elementor styles into account, and the rendered content is broken. I think it might be caused by the fact that you're actually querying the "revision" post_type in the URL, but I'm not sure.

Please note that Gutenberg was disabled on my side. Not sure if it changes anything though...

Thanks!