PluginProbe
wpForo Forum / 3.2.1
wpForo Forum v3.2.1
3.2.1 3.2.0 3.1.7 3.1.6 3.1.5 3.1.4 3.1.2 3.1.1 3.1.0 3.0.9 3.0.8 3.0.7 trunk 1.0.0 1.0.1 1.0.2 1.1.0 1.1.1 1.1.2 1.2.0 1.3.0 1.3.1 1.4.0 1.4.1 1.4.10 All 141 releases
← All changes | admin/pages/license/src/LicenseModule.php +8 -0 3.1.6 → 3.2.1 View file →
@@ -37,8 +37,16 @@
37 37 return self::$instances[ $slug ] ?? null;
38 38 }
39 39
40 40 /**
41 + * Slugs of all host plugins running this module on the site (wpforo, wpdiscuz, ...).
42 + * Host plugins are updated from wordpress.org and must never be handled as store addons.
43 + */
44 + public static function get_host_slugs(): array {
45 + return array_keys( self::$instances );
46 + }
47 +
48 + /**
41 49 * Generate a unique site token for authenticating with the proxy server.
42 50 * Based on raw domain + WordPress auth salts - unique per installation, not guessable.
43 51 * Uses AUTH_SALT + SECURE_AUTH_SALT for maximum entropy.
44 52 * Falls back to NONCE_SALT or LOGGED_IN_SALT if the primary salts are missing.