Make WordPress Core


Ignore:
Timestamp:
11/04/2008 03:22:24 AM (16 years ago)
Author:
ryan
Message:

Notice fixes from filosofo and Viper007Bond. see #7509

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/upload.php

    r9414 r9506  
    185185foreach ( $matches as $type => $reals )
    186186    foreach ( $reals as $real )
    187         $num_posts[$type] += $_num_posts[$real];
     187        $num_posts[$type] = ( isset( $num_posts[$type] ) ) ? $num_posts[$type] + $_num_posts[$real] : $_num_posts[$real];
    188188
    189189$class = empty($_GET['post_mime_type']) && ! isset($_GET['detached']) ? ' class="current"' : '';
     
    195195        continue;
    196196
    197     if ( wp_match_mime_types($mime_type, $_GET['post_mime_type']) )
     197    if ( !empty($_GET['post_mime_type']) && wp_match_mime_types($mime_type, $_GET['post_mime_type']) )
    198198        $class = ' class="current"';
    199199
Note: See TracChangeset for help on using the changeset viewer.