wphooks.info - after_mu_upgrade

after_mu_upgrade

(trunk - 5.0-alpha-42719)

The hook occurs in the following 2 files

wp-admin/admin.php:
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
		 */
		if ( $c <= 50 || ( $c > 50 && mt_rand( 0, (int) ( $c / 50 ) ) == 1 ) ) {
			require_once( ABSPATH . WPINC . '/http.php' );
			$response = wp_remote_get(
				admin_url( 'upgrade.php?step=1' ), array(
					'timeout'     => 120,
					'httpversion' => '1.1',
				)
			);
			/** This action is documented in wp-admin/network/upgrade.php */
			do_action( 'after_mu_upgrade', $response );
			unset( $response );
		}
		unset( $c );
	}
}

require_once( ABSPATH . 'wp-admin/includes/admin.php' );

auth_redirect();
wp-admin/network/upgrade.php:
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
				);
			}

			/**
			 * Fires after the Multisite DB upgrade for each site is complete.
			 *
			 * @since MU (3.0.0)
			 *
			 * @param array|WP_Error $response The upgrade response array or WP_Error on failure.
			 */
			do_action( 'after_mu_upgrade', $response );
			/**
			 * Fires after each site has been upgraded.
			 *
			 * @since MU (3.0.0)
			 *
			 * @param int $site_id The Site ID.
			 */
			do_action( 'wpmu_upgrade_site', $site_id );
		}