Plugin Dependencies: Remove auto-deactivation and bootstrapping logic.
Automatic deactivation of dependents with unmet dependencies requires a write operation to the database. This was performed during Core's bootstrap, which risked the database and cache becoming out-of-sync on sites with heavy traffic. No longer loading plugins that have unmet requirements has not had a final approach decided core-wide, and is still in discussion in #60491 to be handled in a future release. The `plugin_data` option, used to persistently store plugin data for detecting unmet dependencies during Core's bootstrap, is no longer needed. Follow-up to [57545], [57592], [57606], [57617]. Props dd32, azaozz, swissspidy, desrosj, afragen, pbiron, zunaid321, costdev. Fixes #60457. See #60491, #60510, #60518. Built from https://develop.svn.wordpress.org/trunk@57658 git-svn-id: http://core.svn.wordpress.org/trunk@57159 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -40,6 +40,8 @@ $_SERVER['REQUEST_URI'] = remove_query_arg( $query_args_to_remove, $_SERVER['REQ
|
||||
|
||||
wp_enqueue_script( 'updates' );
|
||||
|
||||
WP_Plugin_Dependencies::initialize();
|
||||
|
||||
if ( $action ) {
|
||||
|
||||
switch ( $action ) {
|
||||
@@ -741,7 +743,6 @@ if ( isset( $_GET['error'] ) ) {
|
||||
?>
|
||||
|
||||
<?php WP_Plugin_Dependencies::display_admin_notice_for_unmet_dependencies(); ?>
|
||||
<?php WP_Plugin_Dependencies::display_admin_notice_for_deactivated_dependents(); ?>
|
||||
<?php WP_Plugin_Dependencies::display_admin_notice_for_circular_dependencies(); ?>
|
||||
<div class="wrap">
|
||||
<h1 class="wp-heading-inline">
|
||||
|
||||
Reference in New Issue
Block a user