Skip to content

Commit

Permalink
Plugins: Initialize plugin dependencies before checking during AJAX.
Browse files Browse the repository at this point in the history
  • Loading branch information
costdev committed May 25, 2024
1 parent 581f8d5 commit 7ff6c41
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/wp-includes/class-wp-plugin-dependencies.php
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,7 @@ public static function check_plugin_dependencies_during_ajax() {
$status['activateUrl'] = add_query_arg( array( 'networkwide' => 1 ), $status['activateUrl'] );
}

self::initialize();
$dependencies = self::get_dependencies( $plugin_file );
if ( empty( $dependencies ) ) {
$status['message'] = __( 'The plugin has no required plugins.' );
Expand Down

0 comments on commit 7ff6c41

Please sign in to comment.