Add restore functionality
|Reported by:||a.hoereth||Owned by:||a.hoereth|
|Milestone:||2013 Midterm (Beta)||Priority:||major|
This needs to hook into wp_restore_post_revision and should handle the updating of the original file. Core takes care of updating the corresponding post.
Saving changes to files is handled differently by core depending on editor. This should be unified in a way.
Plugins are deactivated and reactivated after a file is changed. This automatically checks for unexpected output. For theme's we need to remove the cache.