Changeset 15486 for trunk/wp-admin/includes/ms.php
- Timestamp:
- 08/02/2010 05:29:34 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/ms.php
r15485 r15486 806 806 } 807 807 808 function show_post_thumbnail_warning() {809 if ( ! is_super_admin() )810 return;811 $mu_media_buttons = get_site_option( 'mu_media_buttons', array() );812 if ( empty($mu_media_buttons['image']) && current_theme_supports( 'post-thumbnails' ) ) {813 echo "<div class='update-nag'>" . sprintf( __( "Warning! The current theme supports Featured Images. You must enable image uploads on <a href='%s'>the options page</a> for it to work." ), esc_url( admin_url( 'ms-options.php' ) ) ) . "</div>";814 }815 }816 add_action( 'admin_notices', 'show_post_thumbnail_warning' );817 818 808 function ms_deprecated_blogs_file() { 819 809 if ( ! is_super_admin() )
Note: See TracChangeset
for help on using the changeset viewer.