Changeset 13514
- Timestamp:
- 02/28/2010 08:29:24 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 1 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/ms.php
r13506 r13514 772 772 773 773 function show_post_thumbnail_warning() { 774 if ( false == is_super_admin() ) {774 if ( ! is_super_admin() ) 775 775 return; 776 }777 776 $mu_media_buttons = get_site_option( 'mu_media_buttons', array() ); 778 777 if ( empty($mu_media_buttons[ 'image' ]) && current_theme_supports( 'post-thumbnails' ) ) { … … 782 781 add_action( 'admin_notices', 'show_post_thumbnail_warning' ); 783 782 783 function 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 } 790 add_action( 'admin_notices', 'ms_deprecated_blogs_file' ); 791 784 792 ?> -
trunk/wp-includes/ms-files.php
r13255 r13514 9 9 */ 10 10 11 if ( ! defined( 'SHORTINIT' ) ) { 12 define( 'SHORTINIT', true ); 13 require_once( dirname( dirname( __FILE__ ) ) . '/wp-load.php' ); 14 } 11 define( 'SHORTINIT', true ); 12 require_once( dirname( dirname( __FILE__ ) ) . '/wp-load.php' ); 15 13 16 ms_file_constants( 14 ms_file_constants(); 17 15 18 16 error_reporting( 0 );
Note: See TracChangeset
for help on using the changeset viewer.