Advertisements

show_post_thumbnail_warning

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

Advertisements

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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: