wp-admin/includes/class-wp-plugins-list-table.php:83Checks whether the current user can activate plugins for this screen.
bool public function ajax_user_can() { return current_user_can( 'activate_plugins' ); }Introduced in 3.1.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
src/wp-admin/includes/class-wp-plugins-list-table.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.