Changeset 32865 for trunk/src/wp-admin/includes/admin-filters.php
- Timestamp:
- 06/19/2015 09:17:20 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/admin-filters.php
r32671 r32865 16 16 17 17 // Media hooks. 18 add_ filter( 'media_upload_tabs', 'update_gallery_tab' );19 add_filter( 'image_send_to_editor', 'image_add_caption', 20, 8 ); 18 add_action( 'attachment_submitbox_misc_actions', 'attachment_submitbox_metadata' ); 19 20 20 add_action( 'media_buttons', 'media_buttons' ); 21 22 add_filter( 'attachment_fields_to_save', 'image_attachment_fields_to_save', 10, 2 );23 add_filter( 'media_send_to_editor', 'image_media_send_to_editor', 10, 3 );24 25 add_action( 'post-plupload-upload-ui', 'media_upload_flash_bypass' );26 add_action( 'post-html-upload-ui', 'media_upload_html_bypass' );27 add_filter( 'async_upload_image', 'get_media_item', 10, 2 );28 add_filter( 'async_upload_audio', 'get_media_item', 10, 2 );29 add_filter( 'async_upload_video', 'get_media_item', 10, 2 );30 add_filter( 'async_upload_file', 'get_media_item', 10, 2 );31 21 32 22 add_action( 'media_upload_image', 'wp_media_upload_handler' ); … … 35 25 add_action( 'media_upload_file', 'wp_media_upload_handler' ); 36 26 27 add_action( 'post-plupload-upload-ui', 'media_upload_flash_bypass' ); 28 29 add_action( 'post-html-upload-ui', 'media_upload_html_bypass' ); 30 31 add_filter( 'async_upload_image', 'get_media_item', 10, 2 ); 32 add_filter( 'async_upload_audio', 'get_media_item', 10, 2 ); 33 add_filter( 'async_upload_video', 'get_media_item', 10, 2 ); 34 add_filter( 'async_upload_file', 'get_media_item', 10, 2 ); 35 36 add_filter( 'attachment_fields_to_save', 'image_attachment_fields_to_save', 10, 2 ); 37 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 37 42 add_filter( 'media_upload_gallery', 'media_upload_gallery' ); 38 43 add_filter( 'media_upload_library', 'media_upload_library' ); 39 44 40 add_ action( 'attachment_submitbox_misc_actions', 'attachment_submitbox_metadata' );45 add_filter( 'media_upload_tabs', 'update_gallery_tab' ); 41 46 42 47 // Misc hooks. 43 add_action( 'update_option_home', 'update_home_siteurl', 10, 2 ); 44 add_action( 'update_option_siteurl', 'update_home_siteurl', 10, 2 ); 48 add_action( 'admin_head', 'wp_admin_canonical_url' ); 49 add_action( 'admin_head', 'wp_color_scheme_settings' ); 50 add_action( 'admin_head', '_ipad_meta' ); 51 52 add_action( 'post_edit_form_tag', 'post_form_autocomplete_off' ); 53 54 add_action( 'update_option_home', 'update_home_siteurl', 10, 2 ); 55 add_action( 'update_option_siteurl', 'update_home_siteurl', 10, 2 ); 45 56 add_action( 'update_option_page_on_front', 'update_home_siteurl', 10, 2 ); 46 add_action( 'admin_head', 'wp_color_scheme_settings' ); 47 add_action( 'admin_head', '_ipad_meta' ); 48 add_filter( 'heartbeat_received', 'wp_check_locked_posts', 10, 3 ); 49 add_filter( 'heartbeat_received', 'wp_refresh_post_lock', 10, 3 ); 50 add_filter( 'heartbeat_received', 'wp_refresh_post_nonces', 10, 3 ); 57 58 add_filter( 'heartbeat_received', 'wp_check_locked_posts', 10, 3 ); 59 add_filter( 'heartbeat_received', 'wp_refresh_post_lock', 10, 3 ); 60 add_filter( 'heartbeat_received', 'wp_refresh_post_nonces', 10, 3 ); 61 add_filter( 'heartbeat_received', 'heartbeat_autosave', 500, 2 ); 62 51 63 add_filter( 'heartbeat_settings', 'wp_heartbeat_set_suspension' ); 52 // Run later as we have to set DOING_AUTOSAVE for back-compat53 add_filter( 'heartbeat_received', 'heartbeat_autosave', 500, 2 );54 add_action( 'post_edit_form_tag', 'post_form_autocomplete_off' );55 add_action( 'admin_head', 'wp_admin_canonical_url' );56 64 57 65 // Nav Menu hooks. … … 90 98 // User hooks. 91 99 add_action( 'admin_init', 'default_password_nag_handler' ); 92 add_action( 'profile_update', 'default_password_nag_edit_user', 10, 2 ); 100 93 101 add_action( 'admin_notices', 'default_password_nag' ); 94 102 103 add_action( 'profile_update', 'default_password_nag_edit_user', 10, 2 ); 104 95 105 // Update hooks. 106 add_action( 'admin_init', 'wp_plugin_update_rows' ); 107 add_action( 'admin_init', 'wp_theme_update_rows' ); 108 109 add_action( 'admin_notices', 'update_nag', 3 ); 110 add_action( 'admin_notices', 'maintenance_nag', 10 ); 111 96 112 add_filter( 'update_footer', 'core_update_footer' ); 97 add_action( 'admin_notices', 'update_nag', 3 );98 add_action( 'network_admin_notices', 'update_nag', 3 );99 add_action( 'admin_init', 'wp_plugin_update_rows' );100 add_action( 'admin_init', 'wp_theme_update_rows' );101 add_action( 'admin_notices', 'maintenance_nag' );102 add_action( 'network_admin_notices', 'maintenance_nag' );103 113 104 114 // Update Core hooks.
Note: See TracChangeset
for help on using the changeset viewer.