add support for network only to identify network plugins, see #12139

git-svn-id: http://svn.automattic.com/wordpress/trunk@12970 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
wpmuguru 2010-02-05 16:33:35 +00:00
parent cce3973d0e
commit 4b7ca50b8d

View File

@ -302,7 +302,7 @@ function is_network_only_plugin( $file ) {
/* PHP will close file handle, but we are good citizens. */
@fclose($fp);
if ( preg_match( '|Site Wide Only:(.*)true$|mi', $plugin_data ) )
if ( preg_match( '/(Network|Site Wide) Only:(.*)true$/mi', $plugin_data ) )
return true;
return false;