[wp-trac] [WordPress Trac] #16884: str_replace() in setup-config's get_bloginfo() is bogus
WordPress Trac
wp-trac at lists.automattic.com
Fri Mar 18 14:59:06 UTC 2011
#16884: str_replace() in setup-config's get_bloginfo() is bogus
------------------------------------+------------------------------
Reporter: hakre | Owner:
Type: defect | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 3.1
Severity: normal | Resolution:
Keywords: has-patch dev-feedback |
------------------------------------+------------------------------
Comment (by hakre):
1. The function is defined to be called as `get_bloginfo( 'url' )` later
on in WP_Http::request().
2. `get_bloginfo( 'url' )` is the same as `home_url()`
3. `home_url()` is `get_home_url(null, '')`
4. `get_home_url(null, '')` is basically `get_option( 'home' )`.
That option does not contain the trailing slash.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/16884#comment:11>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list