Version 0.2b of the Simpler CSS plugin provides new functionality.
- Default CSS setting / default text
- Cleaner cleaning
- Quotes in CSS no longer escaped
- @import and CSS comments are now stripped
A new default CSS setting shows on the options page for new users who have just discovered the custom CSS feature. By default, introductory text is shown to let users know what the plugin does. This default text can be edited in the plugin file — very useful for WordPress µ hosts.
Version 0.2b also fixes a problem where CSS properties that have quotes, such as
font-family: "Times New Roman", Georgia, serif; may be escaped by the PHP function
ENT_NOQUOTES is now used so that quotes in CSS code are not erroneously escaped.
This new plugin uses Perl regular expressions to strip out @import rules (to prevent the loading of external stylesheets — useful only for WordPress µ hosts that want to limit their users’ capabilities) and CSS comments (to reduce output size). Further filtering will be added in future versions in a way that allows them to be disabled or enabled.
(We’re skipping the 0.2 release because that one had a link to the old Simpler Plugins site, which has been switched to this blog.)
Version 0.1 of Simpler CSS was released today after the project was added to the WordPress Plugin Directory.
This is the initial version; version 0.2 will be coming within the next few days, allowing for a WordPress.com-style default message and regular expression-based filtering.
Building upon the Custom User CSS plugin by Jeremiah Orem, I’ve developed a Simpler CSS plugin that “just works”. Drop it into the `mu-plugins` folder on a WordPress µ installation, and you’ve just provided all your users with the ability to add custom styling to their blogs.
Coming soon — once the plugin is admitted onto the repository and directory.
(Unlike the Simpler iPaper plugin, which was released under the Apache License, this plugin will be released under the GPL in order to comply with the licensing of the project from which it was forked.)
This version adds significant feature enhancements, including compatibility with the WordPress.com embed code that Scribd provides on every document page.
In this version, a new ‘scribd’ shortcode was added with the ‘key’ rather than ‘accesskey’ parameter so that one can copy the embed code without looking around for the access key.
This release is non-critical and only fixes the readme.txt file.
New users are encouraged to download this release, and old users on any version before 1.0.3 is encouraged to upgrade to this version.
Beginning with this release, future release notifications from this blog will have download graphics. Download graphics with a green arrow indicate stable releases, whereas download graphics with orange arrows indicate critical releases. Old deprecated versions that are known to be problematic do not show the graphic.
Remember, the Simpler iPaper project on Google Code has a wiki page for the changelog that better explains the version numbers and the versions over time.
In this release, the readme file more thoroughly explains the procedures for using the plugin, and a changelog has been added. Inside the plugin, the metadata has been updated to add a link to this blog.
This plugin has been tested with the most recent version of WordPress, version 2.6.3.
Do not download this version. It has been replaced by 1.0.3b.
Our Simpler iPaper plugin may be capable of adding this functionality to blogs, although such a new feature would necessitate an options page, heavier code, database/options table access, and a major version number change.
Although this is certainly an interesting idea and a possibility, is it something that should be considered as a feature of Simpler iPaper? I can certainly see uses of such a feature.