PluginProbe
Embed Privacy / 1.10.2
Embed Privacy v1.10.2
1.14.0 1.13.0 trunk 0.1 1.0.0 1.0.1 1.0.2 1.1.0 1.1.1 1.1.2 1.1.3 1.10.0 1.10.1 1.10.10 1.10.2 1.10.3 1.10.4 1.10.5 1.10.6 1.10.7 1.10.8 1.10.9 1.11.0 1.11.1 1.11.2 All 68 releases
embed-privacy / inc / class-system.php

class-system.php in Embed Privacy 1.10.2, at inc/class-system.php

29 lines 675 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 namespace epiphyt\Embed_Privacy;
3
4 /**
5 * System functionality.
6 *
7 * @author Epiphyt
8 * @license GPL2
9 * @package epiphyt\Embed_Privacy
10 * @since 1.10.2
11 */
12 final class System {
13 /**
14 * Determines whether a plugin is active.
15 *
16 * Basically a wrapper around core's is_plugin_active(), but with auto-loading.
17 *
18 * @param string $plugin Path to the plugin file relative to the plugins directory
19 * @return bool Whether the plugin is active
20 */
21 public static function is_plugin_active( $plugin ) {
22 if ( ! \function_exists( 'is_plugin_active' ) ) {
23 include_once \ABSPATH . 'wp-admin/includes/plugin.php';
24 }
25
26 return \is_plugin_active( $plugin );
27 }
28 }
29