Added support for Multisite

Same as previous pull request, but with added support for WP <3.2.