PluginProbe
Defender Security – Malware Scanner, Login Security & Firewall / 6.3.0
Defender Security – Malware Scanner, Login Security & Firewall v6.3.0
6.3.0 6.2.3 6.2.4 6.2.0 6.2.1 6.2.2 6.1.0 5.3.1 5.4.0 5.4.1 5.5.0 5.5.1 5.6.0 5.6.1 5.6.2 5.7.0 5.7.1 5.7.2 5.8.0 5.8.1 5.9.0 6.0.0 6.0.1 3.0.1 3.1.0 All 141 releases
← All changes | src/component/class-feature-modal.php +13 -0 6.1.0 → 6.3.0 View file →
@@ -104,8 +104,21 @@
104 104 return '';
105 105 }
106 106
107 107 /**
108 + * Enable the welcome modal only when the installed plugin version matches the exact
109 + * release the modal belongs to, so it does not re-appear on later patches/minors
110 + * (e.g. 6.0.1, 6.1) that share the same DB version.
111 + *
112 + * @return void
113 + */
114 + public static function maybe_enable_welcome_modal(): void {
115 + if ( defined( 'DEFENDER_VERSION' ) && version_compare( DEFENDER_VERSION, self::FEATURE_VERSION, '==' ) ) {
116 + update_site_option( self::FEATURE_SLUG, true );
117 + }
118 + }
119 +
120 + /**
108 121 * Delete welcome modal key.
109 122 *
110 123 * @return void
111 124 */