_upgrade_core_deactivate_incompatible_plugins example

$wp_filesystem->put_contents( $old_file, '' );
        }
    }

    // Remove any Genericons example.html's from the filesystem.     _upgrade_422_remove_genericons();

    // Deactivate the REST API plugin if its version is 2.0 Beta 4 or lower.     _upgrade_440_force_deactivate_incompatible_plugins();

    // Deactivate incompatible plugins.     _upgrade_core_deactivate_incompatible_plugins();

    // Upgrade DB with separate request.     /** This filter is documented in wp-admin/includes/update-core.php */
    apply_filters( 'update_feedback', __( 'Upgrading database…' ) );

    $db_upgrade_url = admin_url( 'upgrade.php?step=upgrade_db' );
    wp_remote_post( $db_upgrade_url, array( 'timeout' => 60 ) );

    // Clear the cache to prevent an update_option() from saving a stale db_version to the cache.     wp_cache_flush();
    // Not all cache back ends listen to 'flush'.
Home | Imprint | This part of the site doesn't use cookies.