[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 10:48:05 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          
--------------------------+-------------------------------------------------

Comment(by Frumph):

 Okay so let me get this straight, you're saying instead of having a
 central function that is recognizable to have quite a few options for
 theme developers, the template_directory and stylesheet_directory would be
 more logical to stick with as a URI instead of the server path to the
 directory.

 Okay, well that's cool

 My last thoughts before you close this.  The bloginfo is recognizable as a
 function to use, inside themes.  Theme developers utilize it *and* the
 other information like get_template_directory() which is different then
 get_template_directory_uri() one contains a path the other the URI, so
 just to make sure, of course there's no problem with themes to use
 multiple functions, but you're saying that it's not really that important
 we just need to make the distinction that bloginfo('template_directory')
 is *not* the path and to use get_template_directory() instead. While the
 general expectation would be that it is the path.

 The purpose of the same 'template_directory' and 'template_directory_uri'
 being the same does not make sense.  But hey again, I know what you're
 saying and I realize there are other ways of dealing with it, and it's not
 up to me but if it were, I would want bloginfo to be a central function
 that is recognized to have the information that theme users could use to
 develop with instead of a mixmatch of various different functions.

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


More information about the wp-trac mailing list