|
@@ 793-797 (lines=5) @@
|
| 790 |
|
|
| 791 |
|
$modules = wordpoints_get_array_option( 'wordpoints_active_modules' ); |
| 792 |
|
|
| 793 |
|
if ( is_multisite() && current_user_can( 'manage_network_wordpoints_extensions' ) ) { |
| 794 |
|
|
| 795 |
|
$network_modules = wordpoints_get_array_option( 'wordpoints_sitewide_active_modules', 'site' ); |
| 796 |
|
$modules = array_merge( $modules, array_keys( $network_modules ) ); |
| 797 |
|
} |
| 798 |
|
|
| 799 |
|
if ( empty( $modules ) ) { |
| 800 |
|
return null; |
|
@@ 1340-1352 (lines=13) @@
|
| 1337 |
|
|
| 1338 |
|
$active_modules = wordpoints_get_array_option( 'wordpoints_active_modules' ); |
| 1339 |
|
|
| 1340 |
|
if ( is_wordpoints_network_active() ) { |
| 1341 |
|
|
| 1342 |
|
$network_active_modules = array_keys( |
| 1343 |
|
wordpoints_get_array_option( 'wordpoints_sitewide_active_modules', 'site' ) |
| 1344 |
|
); |
| 1345 |
|
|
| 1346 |
|
// On the network admin screens we only load the network active modules. |
| 1347 |
|
if ( is_network_admin() ) { |
| 1348 |
|
$active_modules = $network_active_modules; |
| 1349 |
|
} else { |
| 1350 |
|
$active_modules = array_merge( $active_modules, $network_active_modules ); |
| 1351 |
|
} |
| 1352 |
|
} |
| 1353 |
|
|
| 1354 |
|
if ( ! empty( $active_modules ) ) { |
| 1355 |
|
|