WordPress.org

Make WordPress Core

Ticket #17898: functions.17898.patch

File functions.17898.patch, 565 bytes (added by xknown, 4 years ago)

untrailingslashit WP_SITEURL and WP_SITEHOME

  • wp-includes/functions.php

     
    29092909 */ 
    29102910function _config_wp_home( $url = '' ) { 
    29112911        if ( defined( 'WP_HOME' ) ) 
    2912                 return WP_HOME; 
     2912                return untrailingslashit( WP_HOME ); 
    29132913        return $url; 
    29142914} 
    29152915 
     
    29292929 */ 
    29302930function _config_wp_siteurl( $url = '' ) { 
    29312931        if ( defined( 'WP_SITEURL' ) ) 
    2932                 return WP_SITEURL; 
     2932                return untrailingslashit( WP_SITEURL ); 
    29332933        return $url; 
    29342934} 
    29352935