Clear some warnings. see #11644

git-svn-id: https://develop.svn.wordpress.org/trunk@12782 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2010-01-20 23:01:09 +00:00
parent aaa492bf22
commit 91732dc4f1
3 changed files with 9 additions and 6 deletions
+1 -1
View File
@@ -1218,7 +1218,7 @@ function show_post_thumbnail_warning() {
return;
}
$mu_media_buttons = get_site_option( 'mu_media_buttons', array() );
if ( !$mu_media_buttons[ 'image' ] && current_theme_supports( 'post-thumbnails' ) ) {
if ( empty($mu_media_buttons[ 'image' ]) && current_theme_supports( 'post-thumbnails' ) ) {
echo "<div id='update-nag'>" . sprintf( __( "Warning! The current theme supports post thumbnails. You must enable image uploads on <a href='%s'>the options page</a> for it to work." ), admin_url( 'ms-options.php' ) ) . "</div>";
}
}