~canonical-sysadmins/wordpress/4.8.1

« back to all changes in this revision

Viewing changes to wp-admin/includes/admin-filters.php

  • Committer: Barry Price
  • Date: 2016-08-17 04:50:12 UTC
  • mfrom: (1.1.18 upstream)
  • Revision ID: barry.price@canonical.com-20160817045012-qfui81zhqnqv2ba9
Merge WP4.6 from upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
add_action( 'admin_head', 'wp_site_icon'             );
44
44
add_action( 'admin_head', '_ipad_meta'               );
45
45
 
46
 
add_action( 'post_edit_form_tag', 'post_form_autocomplete_off' );
 
46
// Prerendering.
 
47
if ( ! is_customize_preview() ) {
 
48
        add_filter( 'admin_print_styles', 'wp_resource_hints', 1 );
 
49
}
 
50
 
 
51
add_action( 'admin_print_scripts-post.php',     'wp_page_reload_on_back_button_js' );
 
52
add_action( 'admin_print_scripts-post-new.php', 'wp_page_reload_on_back_button_js' );
47
53
 
48
54
add_action( 'update_option_home',          'update_home_siteurl', 10, 2 );
49
55
add_action( 'update_option_siteurl',       'update_home_siteurl', 10, 2 );
97
103
add_action( 'profile_update', 'default_password_nag_edit_user', 10, 2 );
98
104
 
99
105
// Update hooks.
100
 
add_action( 'admin_init', 'wp_plugin_update_rows' );
101
 
add_action( 'admin_init', 'wp_theme_update_rows'  );
 
106
add_action( 'load-plugins.php', 'wp_plugin_update_rows', 20 ); // After wp_update_plugins() is called.
 
107
add_action( 'load-themes.php', 'wp_theme_update_rows', 20 ); // After wp_update_themes() is called.
102
108
 
103
109
add_action( 'admin_notices', 'update_nag',      3  );
104
110
add_action( 'admin_notices', 'maintenance_nag', 10 );
110
116
 
111
117
// Upgrade hooks.
112
118
add_action( 'upgrader_process_complete', array( 'Language_Pack_Upgrader', 'async_upgrade' ), 20 );
 
119
add_action( 'upgrader_process_complete', 'wp_version_check', 10, 0 );
 
120
add_action( 'upgrader_process_complete', 'wp_update_plugins', 10, 0 );
 
121
add_action( 'upgrader_process_complete', 'wp_update_themes', 10, 0 );