1. 首页
  2. WordPress 函数手册

ms_file_constants()

ms_file_constants()

定义多站点文件常量。
Defines Multisite file constants.

目录锚点:#说明#返回#源码


说明(Description)

存在,以便与通过wp includes/ms提供的旧文件向后兼容-文件.php(可湿性粉剂含量/博客.php以亩为单位)。


返回(Return)

无返回值


源码(Source)

/**
 * 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 );
}
更新版本 源码位置 使用 被使用
3.0.0 wp-includes/ms-default-constants.php:98 0 0

ms_file_constants() 为WP2原创文章,链接:https://www.wp2.cn/functions/ms_file_constants/