block ms-files.php when not multisite, see #11742
git-svn-id: https://develop.svn.wordpress.org/trunk@14609 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
38407f0af5
commit
ddcf72d638
@ -11,6 +11,9 @@
|
|||||||
define( 'SHORTINIT', true );
|
define( 'SHORTINIT', true );
|
||||||
require_once( dirname( dirname( __FILE__ ) ) . '/wp-load.php' );
|
require_once( dirname( dirname( __FILE__ ) ) . '/wp-load.php' );
|
||||||
|
|
||||||
|
if( !is_multisite() )
|
||||||
|
die( 'Multisite support not enabled' );
|
||||||
|
|
||||||
ms_file_constants();
|
ms_file_constants();
|
||||||
|
|
||||||
error_reporting( 0 );
|
error_reporting( 0 );
|
||||||
@ -77,4 +80,4 @@ if ( ( $client_last_modified && $client_etag )
|
|||||||
|
|
||||||
// If we made it this far, just serve the file
|
// If we made it this far, just serve the file
|
||||||
readfile( $file );
|
readfile( $file );
|
||||||
?>
|
?>
|
||||||
|
Loading…
Reference in New Issue
Block a user