INN/Largo — pull request #128 by drywall (2013-11-15 15:48:57+00:00)
Title: Less/css enhancements

Revamp of the LESS management system!

As you'll recall, it was creating a new post in the DB when a user saved their settings, resulting in big DB issues.

Now on save, it overrides the existing post (it's a special type of post), which allows us to also leverage WP's revisions system. It saves up to 5 revisions, listed in the sidebar of the admin page.

These post revisions just store a JSON string of variables, rather than the compiled CSS. The compiled CSS lives in a postmeta field and is kept only for the active revision.