Prevent WordPress from rendering the initial My Sites menu before we generate anything. In many cases we're regenerating that same menu anyway for each network.
Correct the query used to retrieve a user's networks. As of 09/2016, a request for a user's networks would always return all networks. This resultsed in a My Networks menu appearing for everyone even if they belonged to only 1 network. :disappointed:
When determining how many sites a user is a member of, don't accidentally check the global and network capabilities. This resulted in a My Sites (or My Networks) menu appearing for everyone regardless of the number of sites they belonged to.
Store and capture the current site's admin bar menu so that we can ensure things are displayed in the proper order.
A few things: