Make WordPress Core

Changeset 18454


Ignore:
Timestamp:
07/21/2011 09:35:23 PM (14 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/functions.php

    r18448 r18454  
    29102910function _config_wp_home( $url = '' ) {
    29112911    if ( defined( 'WP_HOME' ) )
    2912         return WP_HOME;
     2912        return untrailingslashit( WP_HOME );
    29132913    return $url;
    29142914}
     
    29302930function _config_wp_siteurl( $url = '' ) {
    29312931    if ( defined( 'WP_SITEURL' ) )
    2932         return WP_SITEURL;
     2932        return untrailingslashit( WP_SITEURL );
    29332933    return $url;
    29342934}
Note: See TracChangeset for help on using the changeset viewer.