Changeset 42343 for trunk/src/wp-admin/includes/admin-filters.php
- Timestamp:
- 11/30/2017 11:09:33 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/admin-filters.php
r41741 r42343 20 20 add_action( 'media_upload_audio', 'wp_media_upload_handler' ); 21 21 add_action( 'media_upload_video', 'wp_media_upload_handler' ); 22 add_action( 'media_upload_file', 22 add_action( 'media_upload_file', 'wp_media_upload_handler' ); 23 23 24 24 add_action( 'post-plupload-upload-ui', 'media_upload_flash_bypass' ); 25 25 26 add_action( 'post-html-upload-ui', 'media_upload_html_bypass' 26 add_action( 'post-html-upload-ui', 'media_upload_html_bypass' ); 27 27 28 28 add_filter( 'async_upload_image', 'get_media_item', 10, 2 ); 29 29 add_filter( 'async_upload_audio', 'get_media_item', 10, 2 ); 30 30 add_filter( 'async_upload_video', 'get_media_item', 10, 2 ); 31 add_filter( 'async_upload_file', 31 add_filter( 'async_upload_file', 'get_media_item', 10, 2 ); 32 32 33 33 add_filter( 'attachment_fields_to_save', 'image_attachment_fields_to_save', 10, 2 ); … … 39 39 40 40 // Misc hooks. 41 add_action( 'admin_init', 'wp_admin_headers' 42 add_action( 'login_init', 'wp_admin_headers' 43 add_action( 'admin_head', 'wp_admin_canonical_url' 41 add_action( 'admin_init', 'wp_admin_headers' ); 42 add_action( 'login_init', 'wp_admin_headers' ); 43 add_action( 'admin_head', 'wp_admin_canonical_url' ); 44 44 add_action( 'admin_head', 'wp_color_scheme_settings' ); 45 add_action( 'admin_head', 'wp_site_icon' 46 add_action( 'admin_head', '_ipad_meta' 45 add_action( 'admin_head', 'wp_site_icon' ); 46 add_action( 'admin_head', '_ipad_meta' ); 47 47 48 48 // Prerendering. … … 51 51 } 52 52 53 add_action( 'admin_print_scripts-post.php', 53 add_action( 'admin_print_scripts-post.php', 'wp_page_reload_on_back_button_js' ); 54 54 add_action( 'admin_print_scripts-post-new.php', 'wp_page_reload_on_back_button_js' ); 55 55 56 add_action( 'update_option_home', 57 add_action( 'update_option_siteurl', 56 add_action( 'update_option_home', 'update_home_siteurl', 10, 2 ); 57 add_action( 'update_option_siteurl', 'update_home_siteurl', 10, 2 ); 58 58 add_action( 'update_option_page_on_front', 'update_home_siteurl', 10, 2 ); 59 add_action( 'update_option_admin_email', 59 add_action( 'update_option_admin_email', 'wp_site_admin_email_change_notification', 10, 3 ); 60 60 61 add_action( 'add_option_new_admin_email', 61 add_action( 'add_option_new_admin_email', 'update_option_new_admin_email', 10, 2 ); 62 62 add_action( 'update_option_new_admin_email', 'update_option_new_admin_email', 10, 2 ); 63 63 64 add_filter( 'heartbeat_received', 'wp_check_locked_posts', 10,3 );65 add_filter( 'heartbeat_received', 'wp_refresh_post_lock', 10,3 );66 add_filter( 'wp_refresh_nonces', 'wp_refresh_post_nonces', 10, 67 add_filter( 'heartbeat_received', 'heartbeat_autosave', 64 add_filter( 'heartbeat_received', 'wp_check_locked_posts', 10, 3 ); 65 add_filter( 'heartbeat_received', 'wp_refresh_post_lock', 10, 3 ); 66 add_filter( 'wp_refresh_nonces', 'wp_refresh_post_nonces', 10, 3 ); 67 add_filter( 'heartbeat_received', 'heartbeat_autosave', 500, 2 ); 68 68 69 69 add_filter( 'heartbeat_settings', 'wp_heartbeat_set_suspension' ); … … 76 76 77 77 // Plugin Install hooks. 78 add_action( 'install_plugins_featured', 79 add_action( 'install_plugins_upload', 80 add_action( 'install_plugins_search', 81 add_action( 'install_plugins_popular', 82 add_action( 'install_plugins_recommended', 83 add_action( 'install_plugins_new', 84 add_action( 'install_plugins_beta', 85 add_action( 'install_plugins_favorites', 78 add_action( 'install_plugins_featured', 'install_dashboard' ); 79 add_action( 'install_plugins_upload', 'install_plugins_upload' ); 80 add_action( 'install_plugins_search', 'display_plugins_table' ); 81 add_action( 'install_plugins_popular', 'display_plugins_table' ); 82 add_action( 'install_plugins_recommended', 'display_plugins_table' ); 83 add_action( 'install_plugins_new', 'display_plugins_table' ); 84 add_action( 'install_plugins_beta', 'display_plugins_table' ); 85 add_action( 'install_plugins_favorites', 'display_plugins_table' ); 86 86 add_action( 'install_plugins_pre_plugin-information', 'install_plugin_information' ); 87 87 88 88 // Template hooks. 89 add_action( 'admin_enqueue_scripts', array( 'WP_Internal_Pointers', 'enqueue_scripts' 90 add_action( 'user_register', 89 add_action( 'admin_enqueue_scripts', array( 'WP_Internal_Pointers', 'enqueue_scripts' ) ); 90 add_action( 'user_register', array( 'WP_Internal_Pointers', 'dismiss_pointers_for_new_users' ) ); 91 91 92 92 // Theme hooks. … … 116 116 add_action( 'load-themes.php', 'wp_theme_update_rows', 20 ); // After wp_update_themes() is called. 117 117 118 add_action( 'admin_notices', 'update_nag', 3);118 add_action( 'admin_notices', 'update_nag', 3 ); 119 119 add_action( 'admin_notices', 'maintenance_nag', 10 ); 120 120
Note: See TracChangeset
for help on using the changeset viewer.