[wp-hackers] Adding A CSS Loader

Rob r at robm.me.uk
Mon Apr 23 13:56:25 GMT 2007


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).


-- 
Rob

-----------------------
Rob Miller
Senior Programmer

email - rob at graphics.net
web - http://www.graphics.net/ | http://robm.me.uk/


More information about the wp-hackers mailing list