Make WordPress Core


Ignore:
Timestamp:
02/28/2010 08:29:24 PM (17 years ago)
Author:
nacin
Message:

Remove wp-content/blogs.php and add deprecated warning for MU admins. fixes #11742

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/ms.php

    r13506 r13514  
    772772
    773773function show_post_thumbnail_warning() {
    774         if ( false == is_super_admin() ) {
     774        if ( ! is_super_admin() )
    775775                return;
    776         }
    777776        $mu_media_buttons = get_site_option( 'mu_media_buttons', array() );
    778777        if ( empty($mu_media_buttons[ 'image' ]) && current_theme_supports( 'post-thumbnails' ) ) {
    … …  
    782781add_action( 'admin_notices', 'show_post_thumbnail_warning' );
    783782
     783function ms_deprecated_blogs_file() {
     784        if ( ! is_super_admin() )
     785                return;
     786        if ( ! file_exists( WP_CONTENT_DIR . '/blogs.php' ) )
     787                return;
     788        echo '<div id="update-nag">' . sprintf( __( 'The <code>%1$s</code> file is deprecated. Please remove it and update your server rewrite rules to use <code>%2$s</code> instead.' ), 'wp-content/blogs.php', 'wp-includes/ms-files.php' ) . '</div>';
     789}
     790add_action( 'admin_notices', 'ms_deprecated_blogs_file' );
     791
    784792?>
Note: See TracChangeset for help on using the changeset viewer.