WordPress.org

Make WordPress Core

Ticket #22186: 22186.2.diff

File 22186.2.diff, 796 bytes (added by nacin, 6 years ago)

Test code for core tabs.

  • wp-includes/media.php

     
    13021302        // to ensure plugins will work. We will then unset those tabs.
    13031303        $tabs = array(
    13041304                // handler action suffix => tab label
    1305                 'type'     => '',
    1306                 'type_url' => '',
    1307                 'gallery'  => '',
    1308                 'library'  => '',
     1305                'type'     => 'Upload',
     1306                'type_url' => 'From URL',
     1307                'gallery'  => 'Gallery',
     1308                'library'  => 'Library',
    13091309        );
    13101310
    13111311        $tabs = apply_filters( 'media_upload_tabs', $tabs );
    1312         unset( $tabs['type'], $tabs['type_url'], $tabs['gallery'], $tabs['library'] );
     1312        // unset( $tabs['type'], $tabs['type_url'], $tabs['gallery'], $tabs['library'] );
    13131313
    13141314        $settings = array(
    13151315                'tabs'   => $tabs,