Un motore di ricerca WordPress per sviluppatori e autori di temi



upgrade_500 ›

Da5.0.0
Deprecaton/a
upgrade_500 ( Nessun parametro )
Definito a:
Codex:

Executes changes made in WordPress 5.0.0.



Sorgenti

function upgrade_500() {
	global $wp_current_db_version;
	if ( $wp_current_db_version < 43764 ) {
		// Allow bypassing Gutenberg plugin deactivation.
		if ( defined( 'GUTENBERG_USE_PLUGIN' ) && GUTENBERG_USE_PLUGIN ) {
			return;
		}

		$was_active = is_plugin_active( 'gutenberg/gutenberg.php' );
		if ( $was_active ) {
			// FIXME: Leave until 501 or 510 to clean up.
			update_site_option( 'upgrade_500_was_gutenberg_active', '1' );
		}

		deactivate_plugins( array( 'gutenberg/gutenberg.php' ), true );
	}
}