@@ 42-49 (lines=8) @@ | ||
39 | * |
|
40 | * @return array The paths of the active sitewide plugins or an empty array. |
|
41 | */ |
|
42 | protected function get_multisite_plugins_paths() { |
|
43 | $plugin_slugs = is_multisite() |
|
44 | ? array_keys( get_site_option( 'active_sitewide_plugins', array() ) ) |
|
45 | : array(); |
|
46 | ||
47 | $plugin_slugs = array_filter( $plugin_slugs, array( $this, 'is_directory_plugin' ) ); |
|
48 | return array_map( array( $this, 'create_plugin_path' ), $plugin_slugs ); |
|
49 | } |
|
50 | ||
51 | /** |
|
52 | * Returns an array containing the paths of the currently active plugins. |
@@ 44-51 (lines=8) @@ | ||
41 | * |
|
42 | * @return array The paths of the active sitewide plugins or an empty array. |
|
43 | */ |
|
44 | protected function get_multisite_plugins_paths() { |
|
45 | $plugin_slugs = is_multisite() |
|
46 | ? array_keys( get_site_option( 'active_sitewide_plugins', array() ) ) |
|
47 | : array(); |
|
48 | ||
49 | $plugin_slugs = array_filter( $plugin_slugs, array( $this, 'is_directory_plugin' ) ); |
|
50 | return array_map( array( $this, 'create_plugin_path' ), $plugin_slugs ); |
|
51 | } |
|
52 | ||
53 | /** |
|
54 | * Returns an array containing the paths of the currently active plugins. |