From a4c2e0dbf88b3b35963e84b4ac75205f7f11820a Mon Sep 17 00:00:00 2001 From: Matt Mullenweg Date: Tue, 11 Mar 2008 01:30:15 +0000 Subject: [PATCH] See #5911. Hat tip: andy. git-svn-id: https://develop.svn.wordpress.org/trunk@7228 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/includes/media.php | 24 +++++++++++++----------- wp-includes/js/swfupload/handlers.js | 6 ++++++ 2 files changed, 19 insertions(+), 11 deletions(-) diff --git a/wp-admin/includes/media.php b/wp-admin/includes/media.php index 2956b998e7..15b646d7d7 100644 --- a/wp-admin/includes/media.php +++ b/wp-admin/includes/media.php @@ -823,23 +823,22 @@ function media_upload_type_form($type = 'file', $errors = null, $id = null) {

- +
- -
+ @@ -853,6 +852,7 @@ jQuery(function($){ + @@ -885,10 +885,11 @@ jQuery(function($){
-

- -

+ + + + $reals ) +foreach ( $matches as $_type => $reals ) foreach ( $reals as $real ) - $num_posts[$type] += $_num_posts[$real]; + $num_posts[$_type] += $_num_posts[$real]; $class = empty($_GET['post_mime_type']) ? ' class="current"' : ''; $type_links[] = "
  • ".__('All Types').""; foreach ( $post_mime_types as $mime_type => $label ) { @@ -1026,6 +1027,7 @@ jQuery(function($){
    + *').not('.media-blank').length > 0 ) + jQuery('.savebutton').show(); + else + jQuery('.savebutton').hide(); + // Only show Gallery button when there are at least two files. if ( jQuery('#media-items>*').length > 1 ) jQuery('.insert-gallery').show();