[wp-hackers] Adding A CSS Loader
Burobjorn
burobjorn at gmail.com
Mon Apr 23 14:08:06 GMT 2007
As far as I understood plugin authors don't have to have to use it.
The echo will still work. Those plugins wanting to take advantage of the
add_css function would use this otherwise they can still use echo.
It's not mandatory to use, although if we want to make it a succes we
need to make it very much wanted and caching might be a good argument in
this.
grtz
BjornW
> On 23/04/07, Jamie Holly <hovercrafter at earthlink.net> wrote:
>> snip
>
> How would there not be compatibility issues? As far as I can see,
> plugins would have to do:
>
> if ( function_exists('add_css') ) {
> add_css('foo.css');
> } else {
> function foo_wp_head() {
> echo '<link rel="stylesheet" href="foo.css" type="text/css" />';
> }
> add_action('wp_head', 'foo_wp_head');
> }
>
> If they wanted to be compatible with <2.3 (or whenever we put this in).
>
>
More information about the wp-hackers
mailing list