mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 17:48:01 +01:00
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:
parent
cce3973d0e
commit
4b7ca50b8d
@ -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