ciubotaru/share-on-diaspora

Keep css and pod list settings between updates

ciubotaru opened this issue · 1 comments

User settings are currently stored in two places -- in the database and in files (share-on-diaspora.css for button styles and podlist_show.php for pod list). User preferences are first stored in the database. On update, the files are regenerated. The button and the pod list read the files, not the database. Everything is fine, except for updates.

Upon update, all files (including the ones with user settings) are replaced. So, after an update the content of database and files is different. To synchronize, the user (blog admin) has to press the "Update" button once again. That's not self-evident, so ... so it's a bug.

Fixed. The share-on-diaspora.css file phased out in favor of dynamic css generation (file share-on-diaspora-css.php). File podlist_show.php phased out in favor of retrieving podlist preferences directly from WP options. See commit b127e23 for details. Closing.