[wp-trac] [WordPress Trac] #20760: Erroneous use of str_replace() in setup-config.php
WordPress Trac
wp-trac at lists.automattic.com
Sat May 26 22:32:30 UTC 2012
#20760: Erroneous use of str_replace() in setup-config.php
--------------------------+-----------------------------
Reporter: johnbillion | Owner:
Type: defect (bug) | Status: new
Priority: low | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Keywords:
--------------------------+-----------------------------
In `wp-admin/setup-config.php` we have an instance of `str_replace()`
which uses a blank string in the `$subject` parameter. While it has no
detrimental effect, it may as well be removed to avoid some head
scratching.
{{{
function get_bloginfo() {
return ( ( is_ssl() ? 'https://' : 'http://' ) .
$_SERVER['HTTP_HOST'] . str_replace( $_SERVER['PHP_SELF'], '/wp-admin
/setup-config.php', '' ) );
}
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20760>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list