mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
block ms-files.php when not multisite, see #11742
git-svn-id: http://svn.automattic.com/wordpress/trunk@14609 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
50b197cf94
commit
24f2415b80
@ -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