washingtonstateuniversity / WSUWP-Plugin-Analytics

Provides tracking scripts and GA ID management for WSU WordPress sites.
2 stars 0 forks source link

[PR] Remove `wsuwp_get_current_network()` and related functions #46

Closed jeremyfelt closed 8 years ago

jeremyfelt commented 8 years ago

This removes the use of wsuwp_get_current_network() and uses get_network() instead. The previous check for whether a user was a network admin was broken because the wrong parameters were being passed to wsuwp_is_network_admin(). That's been changed to check for a global admin instead.

See https://github.com/washingtonstateuniversity/WSUWP-Platform/issues/350

jeremyfelt commented 8 years ago

@philcable #reviewmerge?

philcable commented 8 years ago

Looks good!