From 6a85dc6dc19f188f6918aaff06d29f76db1f93e8 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Thu, 21 Jul 2011 21:35:23 +0000 Subject: [PATCH] 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 --- wp-includes/functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index fe7a3745c8..12d2f117a6 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -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; }