ms_file_constants
Defines Multisite file constants.
Description
ms_file_constants();
Exists for backward compatibility with legacy file-serving through wp-includes/ms-files.php (wp-content/blogs.php in MU).
Usage
if ( !function_exists( 'ms_file_constants' ) ) { require_once ABSPATH . WPINC . '/ms-default-constants.php'; } // NOTICE! Understand what this does before running. $result = ms_file_constants();
Defined (1)
The function is defined in the following location(s).
- /wp-includes/ms-default-constants.php
- 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 );
- }