The built-in ability to restore revisions of posts and pages in Wordpress is great. Is there something that gives the same power to template files in the theme-editor? Perhaps a plugin?

  • I find this idea interesting, but is this practical over using real full-featured version control?..
    – Rarst
    Jan 12, 2011 at 6:19

2 Answers 2


Templates are only stored as files in the file system. They are not stored in the database so there is no core functionality for versioning template files. When you make changes, the file is overwritten with the changes.

The easiest route would be to use an existing version control solution (SVN,CVS,Git,Hg, etc.) and maintain the versioning separate from WordPress.

  • As per my comment I kinda agree on full featured version control. Just want to note that templates being stored in file system doesn't prevent from storing their revisions elsewhere. Anyway I don't think WP internal editor is important enough (yet?) for someone to bother with developing such functionality for it.
    – Rarst
    Jan 14, 2011 at 6:40

There is no such plugin out there to do this that I am aware of. But, this is an awesome idea for a plugin. When I get the time I might have a go at creating a theme / plugin versioning plugin that merely creates copies of itself so you can revert back after changes have been made. It wouldn't be overly complex like Git or SVN, but it would be useful.

  • If you do create a plugin, please share it with us here!
    – Carson
    Jan 16, 2011 at 21:05
  • I will be sure to. I've started on a rough version of it now, but nothing to release just yet. Jan 17, 2011 at 3:56
  • Hi Dwayne, just wanted to check in. Any further updates on this plugin?
    – Carson
    Feb 14, 2011 at 23:59
  • Nothing as of yet Carson. I've been super busy with a heap of work for a while + freelance. I sadly haven't had the chance to work on this awesome plugin idea. I haven't forgotten though. Feb 15, 2011 at 0:43
  • 1
    search for advanced code editor plugin :)
    – Bainternet
    May 27, 2013 at 6:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.