add support for network only to identify network plugins, see #12139
git-svn-id: https://develop.svn.wordpress.org/trunk@12970 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
d8e395f8fb
commit
66f5d7e74e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user