WordPress.org

Make WordPress Core

Changeset 11051


Ignore:
Timestamp:
04/22/09 11:10:15 (5 years ago)
Author:
azaozz
Message:

Properly set the default tab in the uploader, props fuggi, fixes #7219

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/media.php

    r11013 r11051  
    7070        elseif ( isset($_GET['tab']) && array_key_exists($_GET['tab'], $tabs) ) 
    7171            $current = $_GET['tab']; 
    72         else { 
    73             $keys = array_keys($tabs); 
    74             $current = array_shift($keys); 
    75         } 
     72        else 
     73            $current = apply_filters('media_upload_default_tab', 'type'); 
     74 
    7675        foreach ( $tabs as $callback => $text ) { 
    7776            $class = ''; 
Note: See TracChangeset for help on using the changeset viewer.