WordPress.org

Make WordPress Core

Ticket #20819: 20819.patch

File 20819.patch, 622 bytes (added by SergeyBiryukov, 3 years ago)
  • wp-admin/custom-header.php

     
    9696 
    9797                add_filter( 'attachment_fields_to_edit', array( $this, 'attachment_fields_to_edit' ), 10, 2 ); 
    9898                add_filter( 'media_upload_tabs', array( $this, 'filter_upload_tabs' ) ); 
     99                add_filter( 'media_upload_mime_type_links', array( $this, 'filter_upload_mime_type_links' ) ); 
    99100        } 
    100101 
    101102        /** 
     
    984985                return $tabs; 
    985986        } 
    986987 
     988        function filter_upload_mime_type_links() { 
     989                return array(); 
     990        } 
     991 
    987992}