Editor: Update the minimum compatible version of Gutenberg.
Previous Gutenberg versions are not compatible with recent trunk because of the WP_Navigation_Block_Renderer classname. It's present in both. Gutenberg has been updated to avoid the use of this class but we need to auto-disable old plugins to avoid fatals. Props hellofromtonya. See #60315. Built from https://develop.svn.wordpress.org/trunk@57384 git-svn-id: http://core.svn.wordpress.org/trunk@56890 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -1848,13 +1848,14 @@ function _upgrade_440_force_deactivate_incompatible_plugins() {
|
|||||||
* @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.
|
* @since 6.4.0 The minimum compatible version of Gutenberg is 16.5.
|
||||||
|
* @since 6.5.0 The minimum compatible version of Gutenberg is 17.6.
|
||||||
*/
|
*/
|
||||||
function _upgrade_core_deactivate_incompatible_plugins() {
|
function _upgrade_core_deactivate_incompatible_plugins() {
|
||||||
if ( defined( 'GUTENBERG_VERSION' ) && version_compare( GUTENBERG_VERSION, '16.5', '<' ) ) {
|
if ( defined( 'GUTENBERG_VERSION' ) && version_compare( GUTENBERG_VERSION, '17.6', '<' ) ) {
|
||||||
$deactivated_gutenberg['gutenberg'] = array(
|
$deactivated_gutenberg['gutenberg'] = array(
|
||||||
'plugin_name' => 'Gutenberg',
|
'plugin_name' => 'Gutenberg',
|
||||||
'version_deactivated' => GUTENBERG_VERSION,
|
'version_deactivated' => GUTENBERG_VERSION,
|
||||||
'version_compatible' => '16.5',
|
'version_compatible' => '17.6',
|
||||||
);
|
);
|
||||||
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.5-alpha-57383';
|
$wp_version = '6.5-alpha-57384';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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.
|
||||||
|
|||||||
Reference in New Issue
Block a user