[theme-reviewers] Failure of review for my theme (Ahimsa 4.0)
Chip Bennett
chip at chipbennett.net
Mon Mar 19 01:02:17 UTC 2012
No, not really. You can output a custom <script type="text/css"> inside a
PHP function, hooked into wp_print_scripts. And the custom CSS rules
themselves, being non-html text, can easily be sanitized and saved to the
database.
For example, see how Twenty Eleven outputs its custom link color CSS rule
(look for the twentyeleven_print_link_color_style() function, hooked into
wp_head):
http://themes.svn.wordpress.org/twentyeleven/1.3/inc/theme-options.php
Thanks,
Chip
On Sun, Mar 18, 2012 at 7:55 PM, // ravi <ravi-lists at g8o.net> wrote:
> On Mar 18, 2012, at 9:10 AM, Chip Bennett wrote:
> >
> > Is there any particular reason that your "skins" have to use these sort
> of files, rather than simply enqueueing CSS files?
> >
>
> To clarify my previous post further, I guess I can indeed enqueue the CSS
> files to serve them to viewers, but writing/creating these CSS files based
> on blog owner supplied values will still need WP_Filesystem, I think?
>
> —ravi
>
>
> _______________________________________________
> theme-reviewers mailing list
> theme-reviewers at lists.wordpress.org
> http://lists.wordpress.org/mailman/listinfo/theme-reviewers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wordpress.org/pipermail/theme-reviewers/attachments/20120318/3f580c92/attachment.htm>
More information about the theme-reviewers
mailing list