Make WordPress Core

Ticket #52575: 52575.diff

File 52575.diff, 996 bytes (added by peterwilsoncc, 3 years ago)
  • src/wp-admin/includes/file.php

    diff --git a/src/wp-admin/includes/file.php b/src/wp-admin/includes/file.php
    index 6ef2aed553..306da79ed0 100644
    a b function get_file_description( $file ) { 
    9898}
    9999
    100100/**
    101  * Gets the absolute filesystem path to the root of the WordPress installation.
     101 * Gets the absolute filesystem path to the root of the WordPress site.
     102 *
     103 * Returns the filesystem path to the home page of the WordPress site. For
     104 * WordPress sites with WordPress running in its own directory, this does
     105 * not match ABSPATH but rather the path for home_url().
     106 *
     107 * @link https://wordpress.org/documentation/article/giving-wordpress-its-own-directory/
    102108 *
    103109 * @since 1.5.0
    104110 *
    105  * @return string Full filesystem path to the root of the WordPress installation.
     111 * @return string Full filesystem path to the root of the WordPress site.
    106112 */
    107113function get_home_path() {
    108114        $home    = set_url_scheme( get_option( 'home' ), 'http' );