9

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 '11 at 6:19
5

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 '11 at 6:40
1

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 '11 at 21:05
  • I will be sure to. I've started on a rough version of it now, but nothing to release just yet. – Dwayne Charrington Jan 17 '11 at 3:56
  • Hi Dwayne, just wanted to check in. Any further updates on this plugin? – Carson Feb 14 '11 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. – Dwayne Charrington Feb 15 '11 at 0:43
  • 1
    search for advanced code editor plugin :) – Bainternet May 27 '13 at 6:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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