Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

The question is in the title really. What is the difference between blog_info('stylesheet_url') difference get_stylesheet_uri(), and if it's a case that one is newer then which.

The codex says:

'stylesheet_url' - Returns the primary CSS (usually style.css) file URL of the active theme. Consider using get_stylesheet_uri() instead.

share|improve this question
add comment

1 Answer 1

up vote 4 down vote accepted

Actually bloginfo( 'stylesheet_url ) uses get_stylesheet_uri() function, so there is no difference. get_stylesheet_uri() is newer

share|improve this answer
    
thanks - actually do you have any idea why they'd be bothered writing a new function if there was an old one there that did the job - less typing ? –  byronyasgur Sep 2 '11 at 14:32
1  
You're very welcome. I think they did this because of better performance. –  Mamaduka Sep 2 '11 at 15:26
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.