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

  1. if ( !function_exists( 'ms_file_constants' ) ) { 
  2. require_once ABSPATH . WPINC . '/ms-default-constants.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = ms_file_constants(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/wp-includes/ms-default-constants.php  
  1. function ms_file_constants() { 
  2. /** 
  3. * Optional support for X-Sendfile header 
  4. * @since 3.0.0 
  5. */ 
  6. if ( !defined( 'WPMU_SENDFILE' ) ) 
  7. define( 'WPMU_SENDFILE', false ); 
  8.  
  9. /** 
  10. * Optional support for X-Accel-Redirect header 
  11. * @since 3.0.0 
  12. */ 
  13. if ( !defined( 'WPMU_ACCEL_REDIRECT' ) ) 
  14. define( 'WPMU_ACCEL_REDIRECT', false );