ms_file_constants()定义多站点的文件常量

目录

描述

Defines Multisite file constants.

ms_file_constants() 描述

用法

<?php ms_file_constants() ?>

ms_file_constants() 用法

参数

This function does not accept any parameters

ms_file_constants() 参数

示例

/* ----------------------------------
 * wordpress之魂 © http://wphun.com
 * ---------------------------------- */

ms_file_constants() 示例

注意

Exists for backward compatibility with legacy file-serving through wp-includes/ms-files.php (wp-content/blogs.php in MU).

ms_file_constants() 注意

历史

添加于 版本: 3.0.0

ms_file_constants() 历史

源文件

ms_file_constants() 函数的代码位于 wp-includes/ms-default-constants.php

/* ----------------------------------
 * wordpress之魂 © http://wphun.com
 * ---------------------------------- */
/**
 * 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 );
}

ms_file_constants() 源文件

相关