• Resolved Fabian Todt


    I`ve got a problem with previewing posts when this plugin is enabled.
    When my authors preview the post via the “Preview” Button in the save box (nott happening via preview in post list) on the edit screen an _thumbnail_id query variable is appended which is wrong – therefore the get_thumbnail_id function in the single.php template returns a non existing image.
    I tested it with Revisionary disabled and it works correctly so I dug into the code. It comes from fltPreviewLink in post-edit_rvy.php#230 – it resets the query variable to a value saved in $revisionary->last_autosave_id[$_post->ID]. But I don’t understand why đŸ˜€ IMHO it should at least set it to the value of the meta key _thumbnail_id of this last autosave id but not directly to the last autosave id (because then the thumbnail id points to a post id). If I do that it works correctly. You can see it in a gist here.

    But maybe I don’t understand why the value is correctedl ike that and something else is needed as well.

    EDIT: I’d happily add a PR to the github repository but it doesn’t seem to be up to date with the plugin version here?

    • This topic was modified 4 months, 3 weeks ago by Fabian Todt.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.