Ticket #32529: 32529.02.patch
File 32529.02.patch, 7.6 KB (added by , 9 years ago) |
---|
-
src/wp-admin/includes/admin-filters.php
15 15 add_action( 'activity_box_end', 'wp_dashboard_quota' ); 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 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 ); 22 add_action( 'media_upload_image', 'wp_media_upload_handler' ); 23 add_action( 'media_upload_audio', 'wp_media_upload_handler' ); 24 add_action( 'media_upload_video', 'wp_media_upload_handler' ); 25 add_action( 'media_upload_file', 'wp_media_upload_handler' ); 24 26 25 27 add_action( 'post-plupload-upload-ui', 'media_upload_flash_bypass' ); 26 add_action( 'post-html-upload-ui', 'media_upload_html_bypass' ); 28 29 add_action( 'post-html-upload-ui', 'media_upload_html_bypass' ); 30 27 31 add_filter( 'async_upload_image', 'get_media_item', 10, 2 ); 28 32 add_filter( 'async_upload_audio', 'get_media_item', 10, 2 ); 29 33 add_filter( 'async_upload_video', 'get_media_item', 10, 2 ); 30 34 add_filter( 'async_upload_file', 'get_media_item', 10, 2 ); 31 35 32 add_action( 'media_upload_image', 'wp_media_upload_handler' ); 33 add_action( 'media_upload_audio', 'wp_media_upload_handler' ); 34 add_action( 'media_upload_video', 'wp_media_upload_handler' ); 35 add_action( 'media_upload_file', 'wp_media_upload_handler' ); 36 add_filter( 'attachment_fields_to_save', 'image_attachment_fields_to_save', 10, 2 ); 36 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 47 42 48 // Misc hooks. 43 add_action( 'update_option_home', 'update_home_siteurl', 10, 2 ); 44 add_action( 'update_option_siteurl', 'update_home_siteurl', 10, 2 ); 45 add_action( 'update_option_page_on_front', 'update_home_siteurl', 10, 2 ); 49 add_action( 'admin_head', 'wp_admin_canonical_url' ); 46 50 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 ); 51 add_filter( 'heartbeat_settings', 'wp_heartbeat_set_suspension' ); 52 // Run later as we have to set DOING_AUTOSAVE for back-compat 53 add_filter( 'heartbeat_received', 'heartbeat_autosave', 500, 2 ); 51 add_action( 'admin_head', '_ipad_meta' ); 52 54 53 add_action( 'post_edit_form_tag', 'post_form_autocomplete_off' ); 55 add_action( 'admin_head', 'wp_admin_canonical_url' );56 54 55 add_action( 'update_option_home', 'update_home_siteurl', 10, 2 ); 56 add_action( 'update_option_siteurl', 'update_home_siteurl', 10, 2 ); 57 add_action( 'update_option_page_on_front', 'update_home_siteurl', 10, 2 ); 58 59 add_filter( 'heartbeat_received', 'wp_check_locked_posts', 10, 3 ); 60 add_filter( 'heartbeat_received', 'wp_refresh_post_lock', 10, 3 ); 61 add_filter( 'heartbeat_received', 'wp_refresh_post_nonces', 10, 3 ); 62 add_filter( 'heartbeat_received', 'heartbeat_autosave', 500, 2 ); 63 64 add_filter( 'heartbeat_settings', 'wp_heartbeat_set_suspension' ); 65 66 57 67 // Nav Menu hooks. 58 68 add_action( 'admin_head-nav-menus.php', '_wp_delete_orphaned_draft_menu_items' ); 59 69 70 60 71 // Plugin hooks. 61 72 add_filter( 'whitelist_options', 'option_update_filter' ); 62 73 74 63 75 // Plugin Install hooks. 64 76 add_action( 'install_plugins_featured', 'install_dashboard' ); 65 77 add_action( 'install_plugins_upload', 'install_plugins_upload' ); … … 71 83 add_action( 'install_plugins_favorites', 'display_plugins_table' ); 72 84 add_action( 'install_plugins_pre_plugin-information', 'install_plugin_information' ); 73 85 86 74 87 // Template hooks. 75 88 add_action( 'admin_enqueue_scripts', array( 'WP_Internal_Pointers', 'enqueue_scripts' ) ); 76 89 add_action( 'user_register', array( 'WP_Internal_Pointers', 'dismiss_pointers_for_new_users' ) ); 77 90 91 78 92 // Theme hooks. 79 93 add_action( 'customize_controls_print_footer_scripts', 'customize_themes_print_templates' ); 80 94 95 81 96 // Theme Install hooks. 82 97 // add_action('install_themes_dashboard', 'install_themes_dashboard'); 83 98 // add_action('install_themes_upload', 'install_themes_upload', 10, 0); … … 87 102 // add_action('install_themes_updated', 'display_themes'); 88 103 add_action( 'install_themes_pre_theme-information', 'install_theme_information' ); 89 104 105 90 106 // User hooks. 91 107 add_action( 'admin_init', 'default_password_nag_handler' ); 92 add_action( 'profile_update', 'default_password_nag_edit_user', 10, 2 ); 108 93 109 add_action( 'admin_notices', 'default_password_nag' ); 94 110 111 add_action( 'profile_update', 'default_password_nag_edit_user', 10, 2 ); 112 113 95 114 // Update hooks. 96 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 115 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' ); 116 add_action( 'admin_init', 'wp_theme_update_rows' ); 103 117 118 add_action( 'admin_notices', 'update_nag', 3 ); 119 add_action( 'admin_notices', 'maintenance_nag', 10 ); 120 121 add_filter( 'update_footer', 'core_update_footer' ); 122 123 104 124 // Update Core hooks. 105 125 add_action( '_core_updated_successfully', '_redirect_to_about_wordpress' ); 106 126 127 107 128 // Upgrade hooks. 108 129 add_action( 'upgrader_process_complete', array( 'Language_Pack_Upgrader', 'async_upgrade' ), 20 ); -
src/wp-admin/includes/ms-admin-filters.php
7 7 * @since 4.3.0 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 25 // Site Hooks. 19 26 add_action( 'wpmueditblogaction', 'upload_space_setting' ); 20 27 28 29 // Taxonomy Hooks 21 30 add_filter( 'get_term', 'sync_category_tag_slugs', 10, 2 ); 22 31 23 add_action( 'admin_page_access_denied', '_access_denied_splash', 99 );24 32 33 // Post Hooks. 34 add_filter( 'wp_insert_post_data', 'avoid_blog_page_permalink_collision', 10, 2 ); 35 36 37 // Tools Hooks. 25 38 add_filter( 'import_allow_create_users', 'check_import_new_users' ); 26 39 27 add_action( 'admin_notices', 'site_admin_notice' ); 40 41 // Notices Hooks 42 add_action( 'admin_notices', 'site_admin_notice' ); 28 43 add_action( 'network_admin_notices', 'site_admin_notice' ); 29 44 30 add_filter( 'wp_insert_post_data', 'avoid_blog_page_permalink_collision', 10, 2 ); 45 46 // Update Hooks 47 add_action( 'network_admin_notices', 'update_nag', 3 ); 48 add_action( 'network_admin_notices', 'maintenance_nag', 10 );