mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-29 07:37:44 +02:00
Update/Install: Deactivate Gutenberg plugin version older than 16.5.
This commit changes the Gutenberg minimum compatible version number from 14.1 (introduced in [54790]) to 16.5. For versions older than 16.5, the plugin will deactivate when upgrading WordPress to 6.4-beta3 or newer. Changes are done within Core's `_upgrade_core_deactivate_incompatible_plugins()` which is invoked during WordPress' upgrade process. Follow-up to [54790]. Props hellofromTonya, spacedmonkey. Fixes #59584. Built from https://develop.svn.wordpress.org/trunk@56820 git-svn-id: http://core.svn.wordpress.org/trunk@56332 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
6e774df98c
commit
86dd8154df
@ -1845,13 +1845,14 @@ function _upgrade_440_force_deactivate_incompatible_plugins() {
|
|||||||
* @since 5.8.0
|
* @since 5.8.0
|
||||||
* @since 5.9.0 The minimum compatible version of Gutenberg is 11.9.
|
* @since 5.9.0 The minimum compatible version of Gutenberg is 11.9.
|
||||||
* @since 6.1.1 The minimum compatible version of Gutenberg is 14.1.
|
* @since 6.1.1 The minimum compatible version of Gutenberg is 14.1.
|
||||||
|
* @since 6.4.0 The minimum compatible version of Gutenberg is 16.5.
|
||||||
*/
|
*/
|
||||||
function _upgrade_core_deactivate_incompatible_plugins() {
|
function _upgrade_core_deactivate_incompatible_plugins() {
|
||||||
if ( defined( 'GUTENBERG_VERSION' ) && version_compare( GUTENBERG_VERSION, '14.1', '<' ) ) {
|
if ( defined( 'GUTENBERG_VERSION' ) && version_compare( GUTENBERG_VERSION, '16.5', '<' ) ) {
|
||||||
$deactivated_gutenberg['gutenberg'] = array(
|
$deactivated_gutenberg['gutenberg'] = array(
|
||||||
'plugin_name' => 'Gutenberg',
|
'plugin_name' => 'Gutenberg',
|
||||||
'version_deactivated' => GUTENBERG_VERSION,
|
'version_deactivated' => GUTENBERG_VERSION,
|
||||||
'version_compatible' => '14.1',
|
'version_compatible' => '16.5',
|
||||||
);
|
);
|
||||||
if ( is_plugin_active_for_network( 'gutenberg/gutenberg.php' ) ) {
|
if ( is_plugin_active_for_network( 'gutenberg/gutenberg.php' ) ) {
|
||||||
$deactivated_plugins = get_site_option( 'wp_force_deactivated_plugins', array() );
|
$deactivated_plugins = get_site_option( 'wp_force_deactivated_plugins', array() );
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '6.4-beta2-56819';
|
$wp_version = '6.4-beta2-56820';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user