[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:29:43 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 nacin):
I got that. I'm not arguing that the names between the functions and the
bloginfo arguments are inconsistent. I agree. It *can* be confusing.
The reasoning for it is this. bloginfo() is a template tag, primarily used
in themes. Theme developers will never need the path; they always want the
URI. Thus why stylesheet_directory returns the publicly consumed URI
instead of the path. If I had to guess, these were around for longer than
the corresponding functions, which are named better for sure.
My point is, we're not changing the functionality of them, and there
already exist more functions (with better names) that cover the
functionality.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/14720#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list