mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-11 02:49:04 +01:00
Remove show_post_thumbnail_warning
git-svn-id: http://svn.automattic.com/wordpress/trunk@15486 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
56b53ff30f
commit
0490be0ae7
@ -805,16 +805,6 @@ function choose_primary_blog() {
|
|||||||
<?php
|
<?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() {
|
function ms_deprecated_blogs_file() {
|
||||||
if ( ! is_super_admin() )
|
if ( ! is_super_admin() )
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user