Wrong Thumbnail in Preview
-
Hi,
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 theget_thumbnail_id
function in thesingle.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 fromfltPreviewLink
inpost-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?
- The topic ‘Wrong Thumbnail in Preview’ is closed to new replies.