diff --git a/wp-admin/includes/ms.php b/wp-admin/includes/ms.php
index 2a67c7cf1f..f07c85bdeb 100644
--- a/wp-admin/includes/ms.php
+++ b/wp-admin/includes/ms.php
@@ -771,9 +771,8 @@ function stripslashes_from_options( $blog_id ) {
add_action( 'wpmu_upgrade_site', 'stripslashes_from_options' );
function show_post_thumbnail_warning() {
- if ( false == is_super_admin() ) {
+ if ( ! is_super_admin() )
return;
- }
$mu_media_buttons = get_site_option( 'mu_media_buttons', array() );
if ( empty($mu_media_buttons[ 'image' ]) && current_theme_supports( 'post-thumbnails' ) ) {
echo "
" . sprintf( __( "Warning! The current theme supports post thumbnails. You must enable image uploads on
the options page for it to work." ), admin_url( 'ms-options.php' ) ) . "
";
@@ -781,4 +780,13 @@ function show_post_thumbnail_warning() {
}
add_action( 'admin_notices', 'show_post_thumbnail_warning' );
+function ms_deprecated_blogs_file() {
+ if ( ! is_super_admin() )
+ return;
+ if ( ! file_exists( WP_CONTENT_DIR . '/blogs.php' ) )
+ return;
+ echo '' . sprintf( __( 'The %1$s
file is deprecated. Please remove it and update your server rewrite rules to use %2$s
instead.' ), 'wp-content/blogs.php', 'wp-includes/ms-files.php' ) . '
';
+}
+add_action( 'admin_notices', 'ms_deprecated_blogs_file' );
+
?>
diff --git a/wp-content/blogs.php b/wp-content/blogs.php
deleted file mode 100644
index a4235b1675..0000000000
--- a/wp-content/blogs.php
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/wp-includes/ms-files.php b/wp-includes/ms-files.php
index 7362619aea..cb73749f53 100644
--- a/wp-includes/ms-files.php
+++ b/wp-includes/ms-files.php
@@ -8,12 +8,10 @@
* @subpackage Multisite
*/
-if ( ! defined( 'SHORTINIT' ) ) {
- define( 'SHORTINIT', true );
- require_once( dirname( dirname( __FILE__ ) ) . '/wp-load.php' );
-}
+define( 'SHORTINIT', true );
+require_once( dirname( dirname( __FILE__ ) ) . '/wp-load.php' );
-ms_file_constants( );
+ms_file_constants();
error_reporting( 0 );