| @@ 892-895 (lines=4) @@ | ||
| 889 | $plugins = get_plugins(); |
|
| 890 | $active_plugin_paths = (array) get_option( 'active_plugins', array() ); |
|
| 891 | ||
| 892 | if ( is_multisite() ) { |
|
| 893 | $network_activated_plugin_paths = array_keys( get_site_option( 'active_sitewide_plugins', array() ) ); |
|
| 894 | $active_plugin_paths = array_merge( $active_plugin_paths, $network_activated_plugin_paths ); |
|
| 895 | } |
|
| 896 | ||
| 897 | foreach ( $plugins as $plugin_path => $plugin_data ) { |
|
| 898 | // Is plugin active? |
|
| @@ 107-112 (lines=6) @@ | ||
| 104 | $activated_plugins = get_option( 'active_plugins', array() ); |
|
| 105 | ||
| 106 | // Get list of network enabled plugin. |
|
| 107 | if ( is_multisite() ) { |
|
| 108 | $sitewide_activated_plugins = array_keys( get_site_option( 'active_sitewide_plugins', array() ) ); |
|
| 109 | $activated_plugins = ! empty( $activated_plugins ) |
|
| 110 | ? array_merge( $sitewide_activated_plugins, $activated_plugins ) |
|
| 111 | : $sitewide_activated_plugins; |
|
| 112 | } |
|
| 113 | ||
| 114 | return (bool) count( array_intersect( $activated_plugins, $licensed_addons ) ); |
|
| 115 | } |
|