Strip trailing slashes form WP_HOME and WP_SITEURL. Props xknown. fixes #17898

git-svn-id: https://develop.svn.wordpress.org/trunk@18454 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2011-07-21 21:35:23 +00:00
parent ebbf92afc1
commit 6a85dc6dc1
1 changed files with 2 additions and 2 deletions

View File

@ -2909,7 +2909,7 @@ function _xmlrpc_wp_die_filter() {
*/
function _config_wp_home( $url = '' ) {
if ( defined( 'WP_HOME' ) )
return WP_HOME;
return untrailingslashit( WP_HOME );
return $url;
}
@ -2929,7 +2929,7 @@ function _config_wp_home( $url = '' ) {
*/
function _config_wp_siteurl( $url = '' ) {
if ( defined( 'WP_SITEURL' ) )
return WP_SITEURL;
return untrailingslashit( WP_SITEURL );
return $url;
}