ms_file_constants

The timeline below displays how wordpress function ms_file_constants has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 5.1

/**
 * Defines Multisite file constants.
 *
 * Exists for backward compatibility with legacy file-serving through
 * wp-includes/ms-files.php (wp-content/blogs.php in MU).
 *
 * @since 3.0.0
 */
function ms_file_constants()
{
    /**
     * Optional support for X-Sendfile header
     *
     * @since 3.0.0
     */
    if (!defined('WPMU_SENDFILE')) {
        define('WPMU_SENDFILE', false);
    }
    /**
     * Optional support for X-Accel-Redirect header
     *
     * @since 3.0.0
     */
    if (!defined('WPMU_ACCEL_REDIRECT')) {
        define('WPMU_ACCEL_REDIRECT', false);
    }
}

WordPress Version: 3.7

/**
 * Defines Multisite file constants.
 *
 * Exists for backward compatibility with legacy file-serving through
 * wp-includes/ms-files.php (wp-content/blogs.php in MU).
 *
 * @since 3.0.0
 */
function ms_file_constants()
{
    /**
     * Optional support for X-Sendfile header
     * @since 3.0.0
     */
    if (!defined('WPMU_SENDFILE')) {
        define('WPMU_SENDFILE', false);
    }
    /**
     * Optional support for X-Accel-Redirect header
     * @since 3.0.0
     */
    if (!defined('WPMU_ACCEL_REDIRECT')) {
        define('WPMU_ACCEL_REDIRECT', false);
    }
}