Ticket #25767: 25767.diff
File 25767.diff, 807 bytes (added by , 9 years ago) |
---|
-
src/wp-admin/includes/file.php
79 79 * @return string Full filesystem path to the root of the WordPress installation 80 80 */ 81 81 function get_home_path() { 82 $home = get_option( 'home' );83 $siteurl = get_option( 'siteurl' );82 $home = set_url_scheme( get_option( 'home' ), 'http' ); 83 $siteurl = set_url_scheme( get_option( 'siteurl' ), 'http' ); 84 84 if ( ! empty( $home ) && 0 !== strcasecmp( $home, $siteurl ) ) { 85 85 $wp_path_rel_to_home = str_ireplace( $home, '', $siteurl ); /* $siteurl - $home */ 86 86 $pos = strripos( str_replace( '\\', '/', $_SERVER['SCRIPT_FILENAME'] ), trailingslashit( $wp_path_rel_to_home ) );