fabrica-collaborative-editing
fabrica-collaborative-editing copied to clipboard
after refresh
There is a case when the plugin is not working properly.
When user A saves and after his admin edit panel is fully refreshed and THEN user B updates - all is ok.
But when two users are editing the post and both of them will press 'Update' at the same time - one of them will get this :
user B has taken over and is currently editing. Your latest changes were saved as a revision.
I checked the parameters' set send with this heartbeat request and there was no 'fce' field, so the \Fabrica\CollaborativeEditing\Base::filterHeartbeatResponse method is not doing what it is supposed to do.
Somehow the code
wp.heartbeat.enqueue('fce', { 'post_id' : jQuery('#post_ID').val() }, true);
in \wp-content\plugins\fabrica-collaborative-editing\js\post.js takes no effect.