johnjamesjacoby/wp-multi-network — pull request #5 by rmccue (2014-09-11 02:50:36+00:00)
Title: Add get_main_network()

Pulls functionality across from is_main_network(), but allows actually getting the network object back instead.

We could alternatively strip this down to `array_filter( get_networks(), 'is_main_network' )`, but this has O(N) performance over the number of networks you have.

Fixes #2.