Ticket #33257: 33257.diff
File 33257.diff, 1.6 KB (added by , 10 years ago) |
---|
-
src/wp-admin/includes/admin-filters.php
17 17 // Media hooks. 18 18 add_action( 'attachment_submitbox_misc_actions', 'attachment_submitbox_metadata' ); 19 19 20 add_action( 'media_buttons', 'media_buttons' );21 22 20 add_action( 'media_upload_image', 'wp_media_upload_handler' ); 23 21 add_action( 'media_upload_audio', 'wp_media_upload_handler' ); 24 22 add_action( 'media_upload_video', 'wp_media_upload_handler' ); … … 35 33 36 34 add_filter( 'attachment_fields_to_save', 'image_attachment_fields_to_save', 10, 2 ); 37 35 38 add_filter( 'image_send_to_editor', 'image_add_caption', 20, 8 );39 40 add_filter( 'media_send_to_editor', 'image_media_send_to_editor', 10, 3 );41 42 36 add_filter( 'media_upload_gallery', 'media_upload_gallery' ); 43 37 add_filter( 'media_upload_library', 'media_upload_library' ); 44 38 -
src/wp-includes/default-filters.php
401 401 add_action( 'wp_footer', 'wp_admin_bar_render', 1000 ); 402 402 add_action( 'in_admin_header', 'wp_admin_bar_render', 0 ); 403 403 404 // Former admin filters that can also be hooked on the front end 405 add_action( 'media_buttons', 'media_buttons' ); 406 add_filter( 'image_send_to_editor', 'image_add_caption', 20, 8 ); 407 add_filter( 'media_send_to_editor', 'image_media_send_to_editor', 10, 3 ); 408 404 409 unset( $filter, $action );