diff -r 7b1b88e27a20 -r 48c4eec2b7e6 wp/wp-admin/admin-ajax.php --- a/wp/wp-admin/admin-ajax.php Thu Sep 29 08:06:27 2022 +0200 +++ b/wp/wp-admin/admin-ajax.php Fri Sep 05 18:40:08 2025 +0200 @@ -5,7 +5,7 @@ * @package WordPress * @subpackage Administration * - * @link https://codex.wordpress.org/AJAX_in_Plugins + * @link https://developer.wordpress.org/plugins/javascript/ajax */ /** @@ -117,6 +117,7 @@ 'parse-media-shortcode', 'destroy-sessions', 'install-plugin', + 'activate-plugin', 'update-plugin', 'crop-image', 'generate-password', @@ -153,7 +154,8 @@ 'health-check-background-updates', 'health-check-loopback-requests', ); -$core_actions_post = array_merge( $core_actions_post, $core_actions_post_deprecated ); + +$core_actions_post = array_merge( $core_actions_post, $core_actions_post_deprecated ); // Register core Ajax calls. if ( ! empty( $_GET['action'] ) && in_array( $_GET['action'], $core_actions_get, true ) ) { @@ -168,6 +170,9 @@ add_action( 'wp_ajax_nopriv_heartbeat', 'wp_ajax_nopriv_heartbeat', 1 ); +// Register Plugin Dependencies Ajax calls. +add_action( 'wp_ajax_check_plugin_dependencies', array( 'WP_Plugin_Dependencies', 'check_plugin_dependencies_during_ajax' ) ); + $action = $_REQUEST['action']; if ( is_user_logged_in() ) {