wpseek.com
WordPress开发者和主题制作者的搜索引擎
ms_file_constants › WordPress Function
Since3.0.0
已弃用n/a
› ms_file_constants ( 没有参数 )
定义在: |
|
文档: |
Defines Multisite file constants.
Exists for backward compatibility with legacy file-serving through wp-includes/ms-files.php (wp-content/blogs.php in MU).Related Functions: ms_cookie_constants, ms_upload_constants, wp_ssl_constants, wp_cookie_constants, ms_subdomain_constants
源码
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 ); } }