[theme-reviewers] File operations in themes, which PHP functions are/will stay allowed?

Lmm Muc lmmmuc at gmail.com
Wed Apr 6 22:14:46 UTC 2011


Thanks, Otto


On Tue, Apr 5, 2011 at 4:51 AM, Otto <otto at ottodestruct.com> wrote:

> 2. For any normal kind of theme, you probably don't have that much
> dynamic CSS that you actually need to create. You probably only have a
> few settings, for things like colors, fonts, etc. No more than 1K of
> code, probably. The dynamic CSS should go *inline* in the page itself.
> Minified, if you prefer.
>
> Look at how the custom_background and custom_header stuff in core
> works. It's creating CSS and then inserting it right into the page
> using the wp_head hook. That's the right way to do dynamic CSS. Not
> only does it avoid the whole writing files problem, but it also avoids
> an extra HTTP round trip to the server to get your dynamically-written
> static, but small, CSS file. It's actually faster and simpler to put
> the dynamic CSS inline on the page itself.
>
> -Otto
> _______________________________________________
> 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/20110407/c8b59e49/attachment.htm>


More information about the theme-reviewers mailing list