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/model/setting/class-two-fa.php +6 -1 5.9.0 → 6.3.0 View file →
@@ -197,8 +197,11 @@
197 197 if ( ! function_exists( 'get_editable_roles' ) ) {
198 198 require_once ABSPATH . '/wp-admin/includes/user.php';
199 199 }
200 200 $this->user_roles = array_keys( get_editable_roles() );
201 + if ( is_multisite() ) {
202 + $this->user_roles[] = 'super_admin';
203 + }
201 204 // Define some other defaults.
202 205 $this->custom_graphic_type = $default_values['custom_graphic_type'];
203 206 $this->custom_graphic_url = $default_values['custom_graphic_url'];
204 207 $this->custom_graphic_link = $default_values['custom_graphic_link'];
@@ -220,9 +223,11 @@
220 223 *
221 224 * @return void
222 225 */
223 226 protected function after_load(): void {
224 - $this->user_roles = array_values( $this->user_roles );
227 + $this->user_roles = array_values( $this->user_roles );
228 + $this->force_auth_roles = array_values( array_intersect( $this->force_auth_roles, $this->user_roles ) );
229 + $this->force_auth = array() !== $this->force_auth_roles;
225 230 }
226 231
227 232 /**
228 233 * Check if a plugin is in conflict with the current instance.