should_redirect( (int) $user_id ) ) { wp_safe_redirect( Screen::url() ); exit; } } /** * Whether this request may leave for the wizard. * * @param int $user_id Who activated the plugin. */ private function should_redirect( int $user_id ): bool { return get_current_user_id() === $user_id && ! is_network_admin() && ! isset( $_GET['activate-multi'] ) // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Read only: core's flag for bulk activation. && ! Settings::get()['setup_done'] && current_user_can( 'tinta_manage' ); } }