[wp-trac] [WordPress Trac] #14720: get_bloginfo code, with get_template_* and get_stylesheet_*

WordPress Trac wp-trac at lists.automattic.com
Sat Aug 28 08:33:20 UTC 2010


#14720: get_bloginfo code, with get_template_* and get_stylesheet_*
--------------------------+-------------------------------------------------
 Reporter:  Frumph        |       Owner:                 
     Type:  defect (bug)  |      Status:  new            
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:                 
 Severity:  normal        |    Keywords:  close          
--------------------------+-------------------------------------------------
Changes (by nacin):

  * keywords:  => close


Comment:

 > I can recognize _url being used to get the URL of course, but the path
 isn't being represented, so in favor of of using the get_bloginfo() i've
 kept using the get_* functions instead.

 Using the get_* functions is perfectly fine. We could even deprecate some
 of these bloginfo() arguments and point them to the proper alias
 functions, but it really doesn't matter much. The bloginfo() function
 handles URIs only (and it being a template tag, this makes sense); if you
 want the server paths you'll need to use those functions.

 Yeah, the naming is a little goofy -- template_directory passed to
 bloginfo() gives you the URI, while get_template_directory() returns the
 server path... But other than that, I don't see a bug here. Suggesting
 worksforme, unless I'm missing something?

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/14720#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list