Make WordPress Core

Ticket #7219: the_media_upload_tabs_media_php.patch

File the_media_upload_tabs_media_php.patch, 476 bytes (added by fuggi, 17 years ago)

Patch for defect

  • media.php

     
    3333                if ( isset($_GET['tab']) && array_key_exists($_GET['tab'], $tabs) )
    3434                        $current = $_GET['tab'];
    3535                else {
    36                         $keys = array_keys($tabs);
    37                         $current = array_shift($keys);
     36                        $current = apply_filters('media_upload_default_tab', 'type');
    3837                }
    3938                foreach ( $tabs as $callback => $text ) {
    4039                        $class = '';