Definition:
function show_post_thumbnail_warning() {}
Source code
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>";
}
}
2871

February 12, 2011 


No comments yet... Be the first to leave a reply!