函数原型
ms_file_constants()
函数描述
Defines Multisite file constants.
是否弃用
未弃用
函数参数
无
函数返回值
无
函数位置
File: 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 );
}
}
源码链接
变更日志
| Version | Description |
|---|---|
| 3.0.0 | Introduced. |

