Parsed: 131889

function _upgrade_core_deactivate_incompatible_plugins() {
  if ( defined( 'GUTENBERG_VERSION' ) && version_compare( GUTENBERG_VERSION, '14.1', '<' ) ) {
    $deactivated_gutenberg['gutenberg'] = array(
      'plugin_name'         => 'Gutenberg',
      'version_deactivated' => GUTENBERG_VERSION,
      'version_compatible'  => '14.1',
    );
    if ( is_plugin_active_for_network( 'gutenberg/gutenberg.php' ) ) {
      $deactivated_plugins = get_site_option( 'wp_force_deactivated_plugins', array() );
      $deactivated_plugins = array_merge( $deactivated_plugins, $deactivated_gutenberg );
      update_site_option( 'wp_force_deactivated_plugins', $deactivated_plugins );
    } else {
      $deactivated_plugins = get_option( 'wp_force_deactivated_plugins', array() );
      $deactivated_plugins = array_merge( $deactivated_plugins, $deactivated_gutenberg );
      update_option( 'wp_force_deactivated_plugins', $deactivated_plugins );
    }
    deactivate_plugins( array( 'gutenberg/gutenberg.php' ), true );
  }
}