mirror of
git://develop.git.wordpress.org/
synced 2025-02-27 18:13:00 +01:00
Remove show_post_thumbnail_warning
git-svn-id: https://develop.svn.wordpress.org/trunk@15486 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
383b705801
commit
7d0a19de0f
@ -805,16 +805,6 @@ function choose_primary_blog() {
|
||||
<?php
|
||||
}
|
||||
|
||||
function show_post_thumbnail_warning() {
|
||||
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 "<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>";
|
||||
}
|
||||
}
|
||||
add_action( 'admin_notices', 'show_post_thumbnail_warning' );
|
||||
|
||||
function ms_deprecated_blogs_file() {
|
||||
if ( ! is_super_admin() )
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user