wp_should_upgrade_global_tables ( No parameters )

  • (bool) Whether to run the upgrade routines on global tables.
Defined at:


Determine if global tables should be upgraded.This function performs a series of checks to ensure the environment allows for the safe upgrading of global WordPress database tables. It is necessary because global tables will commonly grow to millions of rows on large installations, and the ability to control their upgrade routines can be critical to the operation of large networks. In a future iteration, this function may use `wp_is_large_network()` to more- intelligently prevent global table upgrades. Until then, we make sure WordPress is on the main site of the main network, to avoid running queries more than once in multi-site or multi-network environments.

Related Functions

wp_get_global_styles, wp_enqueue_global_styles, wp_get_global_stylesheet, wp_set_template_globals, wp_filter_global_styles_post

Top Google Results

User discussions

wpseek mobile