WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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
You're very welcome. I think they did this because of better performance. – Mamaduka Sep 2 '11 at 15:26

Your Answer


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.