From b851080920d53cdc3a673a2e6d82fff2ea926073 Mon Sep 17 00:00:00 2001 From: ryan Date: Mon, 21 Nov 2005 08:44:38 +0000 Subject: [PATCH] Don't show the 'All images' tab if no images have been uploaded. Props David House. fixes #1915 git-svn-id: http://svn.automattic.com/wordpress/trunk@3181 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/inline-uploading.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wp-admin/inline-uploading.php b/wp-admin/inline-uploading.php index 5d7b6ac0d9..997b2fdff1 100644 --- a/wp-admin/inline-uploading.php +++ b/wp-admin/inline-uploading.php @@ -414,7 +414,9 @@ form { get_results("SELECT ID FROM $wpdb->posts WHERE post_parent = '$post'") ) { ?> > +get_var("SELECT count(ID) FROM $wpdb->posts WHERE post_status = 'attachment' AND left(post_mime_type, 5) = 'image'")) { ?> > +