[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:32:25 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):
I disagree with never needing the path, for the thought of for example
checking if a file exists before including it to be one. I use it quite
often with ComicPress.
*note* I do understand it when you say it handles URI's only, my thinking
on it is that since bloginfo handles 'basic' structure information that it
could also include paths like the wp_upload_dir does.
I also understand there are better functions and I get what your saying.
With the following:
I'm not sure this is possible but worth a thought, an addition to the
bloginfo might be a wp_set_cache that would retain the information for the
page load instead of calling the functions every time, but I'm not sure
the ramifications of that since i'm not familiar with how that all works,
sort of like a way to speed up the calls? (unknown to me), in my mind (of
what I know about how wp_cache_set works) I would think it would help with
processing and speeding things up.
Which means that if the central location for information that is used
within a theme that uses the bloginfo including the core code (that had
all of the information present) processed it faster it would be a boone
for all, but again i'm not really proficient in that area.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/14720#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list