Changeset 20982
- Timestamp:
- 06/04/2012 02:37:57 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/custom-header.php
r20981 r20982 97 97 add_filter( 'attachment_fields_to_edit', array( $this, 'attachment_fields_to_edit' ), 10, 2 ); 98 98 add_filter( 'media_upload_tabs', array( $this, 'filter_upload_tabs' ) ); 99 add_filter( 'media_upload_mime_type_links', '__return_empty_array' ); 99 100 } 100 101 … … 806 807 807 808 809 /** 810 * Upload the file to be cropped in the second step. 811 * 812 * @since 3.4.0 813 */ 808 814 function step_2_manage_upload() { 809 815 $overrides = array('test_form' => false); … … 961 967 } 962 968 969 /** 970 * Replace default attachment actions with "Set as header" link. 971 * 972 * @since 3.4.0 973 */ 963 974 function attachment_fields_to_edit( $form_fields, $post ) { 964 975 if ( isset( $_REQUEST['context'] ) && $_REQUEST['context'] == 'custom-header' ) { … … 978 989 } 979 990 991 /** 992 * Leave only "Media Library" tab in the uploader window. 993 * 994 * @since 3.4.0 995 */ 980 996 function filter_upload_tabs( $tabs ) { 981 997 if ( isset( $_REQUEST['context'] ) && $_REQUEST['context'] == 'custom-header' )
Note: See TracChangeset
for help on using the changeset viewer.