[wp-trac] [WordPress Trac] #3623: get_bloginfo('site_url') not returning expected value.

WordPress Trac wp-trac at lists.automattic.com
Sun Jan 21 00:01:15 GMT 2007


#3623: get_bloginfo('site_url') not returning expected value.
----------------------+-----------------------------------------------------
 Reporter:  dd32      |       Owner:  anonymous
     Type:  defect    |      Status:  new      
 Priority:  low       |   Milestone:  2.1      
Component:  Template  |     Version:  2.1      
 Severity:  minor     |    Keywords:  site_url 
----------------------+-----------------------------------------------------
 According to the Template tags for get_bloginfo()[[BR]]

 ----
 'url' - the Blog address (URI) is the URL for your blog's web site address
 and is set in Administration > Options > General. This data is retrieved
 from the home record in the wp_options table. [[BR]]
 'home' - returns the same value as 'url'. [[BR]]
 'site_url' - returns the same value as 'url'.
 ----
 [[BR]]
 however the output when using latest SVN: (2.1-RC2 revision 4776)[[BR]]
 [[BR]]
 get_bloginfo(""); // "blog title"[[BR]]
 get_bloginfo('url'); // "blog url"[[BR]]
 get_bloginfo('home'); // "blog url"[[BR]]
 get_bloginfo('site_url'); // "blog title"[[BR]]
 [[BR]]
 It may be that site_url has been depreciated(as it seems to be given that
 'url' should just be used), however it may break some templates/plugins if
 its not included for backwards compatibility.[[BR]]

-- 
Ticket URL: <http://trac.wordpress.org/ticket/3623>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list