Hey guys, sorry for me coming in late on this.
Didn’t see this post until now.
I want to make sure you guys understand what this plugin does.
It creates directories that you can place themes in that make them available only to certain networks.
By default WordPress already allows you to define only certain themes on a per blog/site basis so why create a plugin that does the same thing?
Most people don’t have a Multi-Network environment. A multi-network environment would basically have multiple instances of WordPress Multisite. You would most likely not need this plugin unless you have one of the following plugins installed or you have set this up yourself:
https://www.ads-software.com/extend/plugins/wp-multi-network/
https://wpebooks.com/networks/
(domain mapping is usually common in this environment as well)
If you check for the global variable $current_site you will see information related to the current Network. At least it’s there on my WP 3.0.1 that has a couple dozen networks on it with this plugin working as it should. I have it placed in the “/wp-content/mu-plugins/” directory. Plugins in this directory get loaded acorss the whole WordPress install and are activated by default. They cannot be deactivated unless they’re removed from the directory.
Some of this confusion is caused by the change in naming start at 3.0 when what used to be called “Sites” was changed to “Networks” and “Blogs” were changed to “Sites” with the integration of WordPress MU and regular WordPress.
Daniel, I appreciate the input on the plugin action hook and made the changes and mentioned you on the changelog for the 1.3 release even though I wasn’t encountering any issues with the init hook.
If you guys are still having issues with the plugin working as it should in a multi-network WordPress deployment, please let me know.
Maveesli, to allow only certain themes to a specific site. Upload the theme to the /wp-content/themes/ directory but don’t activate it network wide. Go to “Super Admin > Sites” and edit the blog/site you’re wanting to allow that specific theme. On the right hand side you will see a list of themes. Select the checkbox next to the theme you want to allow that blog/site to use and click “update options.”