2

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.

4

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

2
  • 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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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