Strip trailing slashes form WP_HOME and WP_SITEURL. Props xknown. fixes #17898
git-svn-id: http://svn.automattic.com/wordpress/trunk@18454 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
49c71bc6db
commit
f0fc1f3e48
|
@ -2909,7 +2909,7 @@ function _xmlrpc_wp_die_filter() {
|
||||||
*/
|
*/
|
||||||
function _config_wp_home( $url = '' ) {
|
function _config_wp_home( $url = '' ) {
|
||||||
if ( defined( 'WP_HOME' ) )
|
if ( defined( 'WP_HOME' ) )
|
||||||
return WP_HOME;
|
return untrailingslashit( WP_HOME );
|
||||||
return $url;
|
return $url;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2929,7 +2929,7 @@ function _config_wp_home( $url = '' ) {
|
||||||
*/
|
*/
|
||||||
function _config_wp_siteurl( $url = '' ) {
|
function _config_wp_siteurl( $url = '' ) {
|
||||||
if ( defined( 'WP_SITEURL' ) )
|
if ( defined( 'WP_SITEURL' ) )
|
||||||
return WP_SITEURL;
|
return untrailingslashit( WP_SITEURL );
|
||||||
return $url;
|
return $url;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue