| @@ 103-108 (lines=6) @@ | ||
| 100 | $activated_plugins = get_option( 'active_plugins', array() ); |
|
| 101 | ||
| 102 | // Get list of network enabled plugin. |
|
| 103 | if ( is_multisite() ) { |
|
| 104 | $sitewide_activated_plugins = array_keys( get_site_option( 'active_sitewide_plugins', array() ) ); |
|
| 105 | $activated_plugins = ! empty( $activated_plugins ) |
|
| 106 | ? array_merge( $sitewide_activated_plugins, $activated_plugins ) |
|
| 107 | : $sitewide_activated_plugins; |
|
| 108 | } |
|
| 109 | ||
| 110 | return (bool) count( array_intersect( $activated_plugins, $licensed_addons ) ); |
|
| 111 | } |
|
| @@ 970-973 (lines=4) @@ | ||
| 967 | $plugins = get_plugins(); |
|
| 968 | $active_plugin_paths = (array) get_option( 'active_plugins', array() ); |
|
| 969 | ||
| 970 | if ( is_multisite() ) { |
|
| 971 | $network_activated_plugin_paths = array_keys( get_site_option( 'active_sitewide_plugins', array() ) ); |
|
| 972 | $active_plugin_paths = array_merge( $active_plugin_paths, $network_activated_plugin_paths ); |
|
| 973 | } |
|
| 974 | ||
| 975 | foreach ( $plugins as $plugin_path => $plugin_data ) { |
|
| 976 | // Is plugin active? |
|