wphooks.info - after_db_upgrade

after_db_upgrade

(trunk - 5.0-alpha-42732)

The hook occurs in the following file:

wp-admin/admin.php:
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
if ( get_option( 'db_upgraded' ) ) {
	flush_rewrite_rules();
	update_option( 'db_upgraded', false );

	/**
	 * Fires on the next page load after a successful DB upgrade.
	 *
	 * @since 2.8.0
	 */
	do_action( 'after_db_upgrade' );
} elseif ( get_option( 'db_version' ) != $wp_db_version && empty( $_POST ) ) {
	if ( ! is_multisite() ) {
		wp_redirect( admin_url( 'upgrade.php?_wp_http_referer=' . urlencode( wp_unslash( $_SERVER['REQUEST_URI'] ) ) ) );
		exit;

		/**
		 * Filters whether to attempt to perform the multisite DB upgrade routine.
		 *
		 * In single site, the user would be redirected to wp-admin/upgrade.php.