| @@ 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 | } |
|
| @@ 943-946 (lines=4) @@ | ||
| 940 | $plugins = get_plugins(); |
|
| 941 | $active_plugin_paths = (array) get_option( 'active_plugins', array() ); |
|
| 942 | ||
| 943 | if ( is_multisite() ) { |
|
| 944 | $network_activated_plugin_paths = array_keys( get_site_option( 'active_sitewide_plugins', array() ) ); |
|
| 945 | $active_plugin_paths = array_merge( $active_plugin_paths, $network_activated_plugin_paths ); |
|
| 946 | } |
|
| 947 | ||
| 948 | foreach ( $plugins as $plugin_path => $plugin_data ) { |
|
| 949 | // Is plugin active? |
|