Make WordPress Core

Changeset 13514


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

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

Location:
trunk
Files:
1 deleted
2 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?>
  • trunk/wp-includes/ms-files.php

    r13255 r13514  
    99 */
    1010
    11 if ( ! defined( 'SHORTINIT' ) ) {
    12     define( 'SHORTINIT', true );
    13     require_once( dirname( dirname( __FILE__ ) ) . '/wp-load.php' );
    14 }
     11define( 'SHORTINIT', true );
     12require_once( dirname( dirname( __FILE__ ) ) . '/wp-load.php' );
    1513
    16 ms_file_constants( );
     14ms_file_constants();
    1715
    1816error_reporting( 0 );
Note: See TracChangeset for help on using the changeset viewer.