WordPress.org

Make WordPress Core

Ticket #22772: 22772.patch

File 22772.patch, 524 bytes (added by WraithKenny, 5 years ago)
  • wp-admin/includes/file.php

     
    7979 * @return string Full filesystem path to the root of the WordPress installation
    8080 */
    8181function get_home_path() {
     82        if ( defined( 'HOMEPATH' ) )
     83                return HOMEPATH;
     84
    8285        $home = get_option( 'home' );
    8386        $siteurl = get_option( 'siteurl' );
    8487        if ( ! empty( $home ) && 0 !== strcasecmp( $home, $siteurl ) ) {