Changeset 32865
- Timestamp:
- 06/19/2015 09:17:20 PM (9 years ago)
- Location:
- trunk/src/wp-admin/includes
- Files:
-
- 2 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. -
trunk/src/wp-admin/includes/ms-admin-filters.php
r32653 r32865 8 8 */ 9 9 10 // Media Hooks. 10 11 add_filter( 'wp_handle_upload_prefilter', 'check_upload_size' ); 11 12 12 add_action( 'update_option_new_admin_email', 'update_option_new_admin_email', 10, 2 ); 13 // User Hooks 14 add_action( 'admin_notices', 'new_user_email_admin_notice' ); 15 16 add_action( 'admin_page_access_denied', '_access_denied_splash', 99 ); 17 13 18 add_action( 'add_option_new_admin_email', 'update_option_new_admin_email', 10, 2 ); 14 19 15 20 add_action( 'personal_options_update', 'send_confirmation_on_profile_email' ); 16 21 17 add_action( ' admin_notices', 'new_user_email_admin_notice');22 add_action( 'update_option_new_admin_email', 'update_option_new_admin_email', 10, 2 ); 18 23 24 // Site Hooks. 19 25 add_action( 'wpmueditblogaction', 'upload_space_setting' ); 20 26 27 // Taxonomy Hooks 21 28 add_filter( 'get_term', 'sync_category_tag_slugs', 10, 2 ); 22 29 23 add_action( 'admin_page_access_denied', '_access_denied_splash', 99 ); 30 // Post Hooks. 31 add_filter( 'wp_insert_post_data', 'avoid_blog_page_permalink_collision', 10, 2 ); 24 32 33 // Tools Hooks. 25 34 add_filter( 'import_allow_create_users', 'check_import_new_users' ); 26 35 27 add_action( 'admin_notices', 'site_admin_notice' ); 36 // Notices Hooks 37 add_action( 'admin_notices', 'site_admin_notice' ); 28 38 add_action( 'network_admin_notices', 'site_admin_notice' ); 29 39 30 add_filter( 'wp_insert_post_data', 'avoid_blog_page_permalink_collision', 10, 2 ); 40 // Update Hooks 41 add_action( 'network_admin_notices', 'update_nag', 3 ); 42 add_action( 'network_admin_notices', 'maintenance_nag', 10 );
Note: See TracChangeset
for help on using the changeset viewer.