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();